Linux router (don't laugh) WAS:Re: test

John Fraizer John.Fraizer at EnterZone.Net
Tue Oct 27 22:29:37 UTC 1998


Routing 3 /24's and a /26 using 3 3c905's.  eth0 goes to the cisco->world.
eth1, eth1:0 and eth1:1 go to an ethernet switch that is serving machines
from the three /24's.  eth2 goes to a hub for one of our co-location clients.

Attached is an mrtg graph from someone decided to throw about 8MB of
garbage our way for a few hours.  This little linux router just sat there
and idled through it. 



[root at core0-eth0]:~ # /sbin/route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
Gateway-NET     *               255.255.255.252 U     0      0        5 eth0
EZone-CoLo-2xx- *               255.255.255.192 U     0      0       97 eth2
2xx.xx.2xx.0    *               255.255.255.0   U     0      0     6189 eth1
xx6.28.xx.0     *               255.255.255.0   U     0      0       17 eth1:0
xx9.201.1x8.0   *               255.255.255.0   U     0      0       27 eth1:1
loopback        *               255.0.0.0       U     0      0        0 lo
default         core1-eth0-Ente 0.0.0.0         UG    1      0   286496 eth0



[root at core0-eth0]:~ # /sbin/ifconfig
lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Bcast:127.255.255.255  Mask:255.0.0.0
          UP BROADCAST LOOPBACK RUNNING  MTU:3584  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 coll:0

eth0      Link encap:Ethernet  HWaddr 00:60:08:A2:XX:XX  
          inet addr:2xx.1xx.xx7.xx  Bcast:2xx.1xx.xx7.xx  Mask:255.255.255.252
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:27965989 errors:0 dropped:0 overruns:0 frame:0
          TX packets:60325424 errors:0 dropped:0 overruns:0 carrier:0 coll:81
          Interrupt:11 Base address:0x6100 

eth1      Link encap:Ethernet  HWaddr 00:60:08:A2:XX:XX  
          inet addr:2xx.4x.xx4.1  Bcast:2xx.4x.xx4.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:60459559 errors:0 dropped:0 overruns:0 frame:0
          TX packets:28096141 errors:0 dropped:0 overruns:0 carrier:10 coll:26
          Interrupt:10 Base address:0x6200 

eth1:0    Link encap:Ethernet  HWaddr 00:60:08:A2:XX:XX  
          inet addr:2xx.x8.2x.1  Bcast:2xx.x8.2x.255  Mask:255.255.255.0
          UP BROADCAST RUNNING  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 coll:0

eth1:1    Link encap:Ethernet  HWaddr 00:60:08:A2:XX:XX  
          inet addr:1x9.xx1.xx8.1  Bcast:1x9.xx1.xx8.255  Mask:255.255.255.0
          UP BROADCAST RUNNING  MTU:1500  Metric:1
          RX packets:1 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 coll:0

eth2      Link encap:Ethernet  HWaddr 00:60:08:A2:XX:XX  
          inet addr:xx9.1x5.xx0.xx9  Bcast:xx9.1x5.xx0.191
Mask:255.255.255.192
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:135534 errors:0 dropped:0 overruns:0 frame:0
          TX packets:62097 errors:0 dropped:0 overruns:0 carrier:0 coll:4
          Interrupt:9 Base address:0x6300 



At 11:24 AM 10/27/98 -0800, you wrote:
>>>Other lessons learned, 
>>>	Linux won't route between multiple NICs, using multiple aliases, 
>>> even with ip-forwarding enabled.
>>
>>
>>Someone needs to tell one of our routers this.  It has been routing between
>>multiple NICs for well over a year without any problem.
>
>In that case, I would dearly love to hear how it was done.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: ez-day.gif
Type: application/octet-stream
Size: 4731 bytes
Desc: not available
URL: <http://mailman.nanog.org/pipermail/nanog/attachments/19981027/452c51ef/attachment.obj>
-------------- next part --------------

-------
John Fraizer                      |    __   _
The System Administrator          |   / /  (_)__  __ ____  __ | The choice
mailto:John.Fraizer at EnterZone.Net |  / /__/ / _ \/ // /\ \/ / |  of a GNU
http://www.EnterZone.Net/         | /____/_/_//_/\_,_/ /_/\_\ | Generation
                     A 486 is a terrible thing to waste...


More information about the NANOG mailing list