You are not logged in.
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
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?
:: / my web presence
Offline
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
Thank you Iceram. I was posting this as you were posting your reply.
thank you anyways
Offline
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
Offline