You are not logged in.

#1 2004-12-19 20:22:35

Florin
Member
From: Verona, Italy.
Registered: 2004-11-21
Posts: 17

Yet another routing problem :/

I'm trying to setup something like this:

               ADSL line
                         |
                192.168.0.1   Netgear router
                         |
                192.168.0.2   eth0   Arch box
                192.168.1.1   eth1  /
                         |
                192.168.1.2   Windows box

The rc.conf lines are:

MODULES=(dmfe 8139too uhci_hcd snd-via82xx snd-pcm-oss !usbserial !ide-scsi)

lo="lo 127.0.0.1"
eth0="eth0 192.168.0.2 netmask 255.255.255.0 broadcast 192.168.0.255"
eth1="eth0 192.168.1.1 netmask 255.255.255.0 broadcast 192.168.1.255"
INTERFACES=(lo eth0 eth1)

loopback="-host 127.0.0.1 lo"
gateway="default gw 192.168.0.1"
ROUTES=(gateway loopback)

After a network restart the ifconfig returns the following output:

eth0      Link encap:Ethernet  HWaddr 00:80:AD:01:13:0D  
          inet addr:192.168.1.1  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::280:adff:fe01:130d/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:24 errors:0 dropped:0 overruns:0 frame:0
          TX packets:138 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:3124 (3.0 Kb)  TX bytes:3240 (3.1 Kb)
          Interrupt:11 Base address:0xa400 

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)

What am I doing wrong here and how should I configure the arch box?
Thank you.

Offline

#2 2004-12-19 21:27:56

IceRAM
Member
From: Bucharest, Romania
Registered: 2004-03-04
Posts: 772
Website

Re: Yet another routing problem :/

eth0="eth0 192.168.0.2 netmask 255.255.255.0 broadcast 192.168.0.255"
eth1="eth0 192.168.1.1 netmask 255.255.255.0 broadcast 192.168.1.255"

Why do you have eth0 in both config strings?

Offline

#3 2004-12-19 21:28:57

Florin
Member
From: Verona, Italy.
Registered: 2004-11-21
Posts: 17

Re: Yet another routing problem :/

Oh boy... guess it's not a good idea to chill on a Sunday afternoon, having few beers and also tweaking Linux...


I have commited a typo which costed me about 1 hour of confusion.
Wrong setting:

eth1="eth0 192.168.1.1 netmask 255.255.255.0 broadcast 192.168.1.255"

Good setting (after another beer):

eth1="eth1 192.168.1.1 netmask 255.255.255.0 broadcast 192.168.1.255"

:oops:

It's all smooth now.

Offline

#4 2004-12-19 21:30:24

Florin
Member
From: Verona, Italy.
Registered: 2004-11-21
Posts: 17

Re: Yet another routing problem :/

Thank you Iceram. I was posting this as you were posting your reply.
thank you anyways  big_smile

Offline

#5 2004-12-20 00:23:11

lanrat
Member
From: Poland
Registered: 2003-10-28
Posts: 1,274

Re: Yet another routing problem :/

Florin wrote:

Oh boy... guess it's not a good idea to chill on a Sunday afternoon, having few beers and also tweaking Linux...

You are wrong. This is a very good idea  big_smile

Offline

Board footer

Powered by FluxBB