How do I tell ubuntu to send traffic to a single IP through eth6?

Posted by flashnode on Super User See other posts from Super User or by flashnode
Published on 2011-11-22T15:40:24Z Indexed on 2011/11/23 2:00 UTC
Read the original article Hit count: 511

Filed under:
|
|

I want to ensure that all IP traffic going to 172.16.60.62 uses eth6. Please provide complete commands because my linux-fu is rusty. The host is running Ubuntu Precise 12.04

user@host:~$ ifconfig eth3
eth3      Link encap:Ethernet  HWaddr 00:e0:81:72:fe:c9  
          inet addr:172.16.60.122  Bcast:172.16.60.255  Mask:255.255.255.0
          inet6 addr: fe80::2e0:81ff:fe72:fec9/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:128500 errors:0 dropped:0 overruns:0 frame:0
          TX packets:29082 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:67524823 (67.5 MB)  TX bytes:2217634 (2.2 MB)
          Interrupt:71 Base address:0x6000 

user@host:~$ ifconfig eth6
eth6      Link encap:Ethernet  HWaddr 00:60:dd:47:81:35  
          inet addr:172.16.60.61  Bcast:172.16.60.255  Mask:255.255.255.0
          inet6 addr: fe80::260:ddff:fe47:8135/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:9000  Metric:1
          RX packets:109610 errors:0 dropped:0 overruns:0 frame:0
          TX packets:109388 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:10785630 (10.7 MB)  TX bytes:10754350 (10.7 MB)
          Interrupt:70 

user@host:~$ route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
0.0.0.0         172.16.60.1     0.0.0.0         UG    0      0        0 eth3
169.254.0.0     0.0.0.0         255.255.0.0     U     1000   0        0 eth6
172.16.60.0     0.0.0.0         255.255.255.0   U     1      0        0 eth6
172.16.60.0     0.0.0.0         255.255.255.0   U     1      0        0 eth3

© Super User or respective owner

Related posts about ubuntu

Related posts about networking