[Xorp-users] Fw: How to implement NAT on xorp

naresh raga naresh_raga at yahoo.co.in
Thu May 7 02:53:34 PDT 2009



--- On Thu, 7/5/09, naresh raga <naresh_raga at yahoo.co.in> wrote:

From: naresh raga <naresh_raga at yahoo.co.in>
Subject: [Xorp-users] How to implement NAT on xorp
To: Xorp-users at xorp.org
Date: Thursday, 7 May, 2009, 2:40 AM

Hai,
I have installed xorp on a system(PC) with two NICs(eth2 and eth3).Internet connection has been given to eth2.I want to get internet on a laptop connected to eth3.I am able to ping eth3(172.16.0.1) from my laptop but unable to get internet on it.

Inernet-------|eth2|PC|eth3|-----------laptop(I need net on this laptop).

My configuration file is as below:

interfaces{
interface eth2 {
    description: "IT LAB"
    mac: 00:0c:f1:6d:51:d3  
    disable: false
    vif eth2 {
      disable: false
      address 10.64.25.77{ //active net connection IP
        prefix-length: 16
        broadcast: 10.64.255.255
        disable: false
      }
    }
  }
interface eth3
 {
    description: "PLC LAN"
    mac:  00:0c:f1:6d:51:d4 
    disable: false
    vif eth3 {
      disable: false
      address 172.16.0.1 {
        prefix-length: 24
        broadcast: 172.16.0.255
        disable: false
      }
      
    }
  }
}
fea {
  unicast-forwarding4 {
    disable: false
  }
}

plumbing {
  mfea4 {
    disable: false
    interface eth2 {
      vif eth2 {
        disable: false
      }
   
 }
 interface eth3 {
      vif eth3 {
        disable: false
      }
    }
    
    interface register_vif {
      vif register_vif {
        /* Note: this vif should be always enabled */
        disable: false
      }
    }
    traceoptions {
      flag all {
        disable: false
      }
    }
  }
}

protocols {
  static {
    route 0.0.0.0/0 {
      next-hop: 10.64.1.1
      metric: 1
     
 }
  mrib-route 0.0.0.0/0 {
  next-hop: 10.64.1.1
  metric: 1
    }
  }
}
Here 10.64.1.1 is my lab main router.
When I am trying to connect to net on my laptop(connected to eth3),I am unable to connect.But I can ping to eth3.What could be the problem?What more I have to add to this file for implementing getting net on my laptop?Do I need to implement IBGP protocol?
Please help me out as this is part of my minor project..

Thanks in advance,
Naresh                                





       Now surf faster and smarter ! Check out the new Firefox 3 - Yahoo! Edition *  Click here!
-----Inline Attachment Follows-----

_______________________________________________
Xorp-users mailing list
Xorp-users at xorp.org
http://mailman.ICSI.Berkeley.EDU/mailman/listinfo/xorp-users



      Now surf faster and smarter ! Check out the new Firefox 3 - Yahoo! Edition http://downloads.yahoo.com/in/firefox/?fr=om_email_firefox
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ICSI.Berkeley.EDU/pipermail/xorp-users/attachments/20090507/5b8a14fa/attachment.html 


More information about the Xorp-users mailing list