On Thu, 4 Dec 2003, Josh Trutwin wrote: > Setting up the NIC is easy (ifconfig), but I'm always a little confused > about the routing part. Does this sound right? > > ifconfig eth2 65.15.208.219 netmask 255.255.255.0 up > route add -net 65.15.208.0 netmask 255.255.255.0 -gw 65.15.208.219 dev eth2 > > Of course, this would then route ALL 65.15.208.x IPs and not just the 10 > IPs I want to test. I suppose I could just try this and see what > happens, but anytime I start hosing around with the network interfaces > on my gateway box, bad things happen... Should work just fine, except '-gw' should just be 'gw'. Note that you usually don't need to add the subnet route, it generally gets added when you ifconfig the interface. I do this all the time before sending boxes out; works great. -- Nate Carlson <natecars at real-time.com> | Phone : (952)943-8700 http://www.real-time.com | Fax : (952)943-8500 _______________________________________________ TCLUG Mailing List - Minneapolis/St. Paul, Minnesota http://www.mn-linux.org tclug-list at mn-linux.org https://mailman.real-time.com/mailman/listinfo/tclug-list