Re: Second ethernet card seems to cause networking failure?
2009/5/27 Frank Miles <fpm@u.washington.edu>:
> Sure, can provide more info...
>
> ============ /etc/network/interfaces :
>
> auto lo
> iface lo inet loopback
>
> # The primary network interface
> auto eth0
> #iface eth0 inet dhcp
> iface eth0 inet static
> address xxx.yyy.zzz.32
> network xxx.yyy.zzz.0
> netmask 255.255.255.0
> broadcast xxx.yyy.zzz.255
> gateway xxx.yyy.zzz.100
> pre-up /etc/iptables/iptables.sh start
> post-down /etc/iptables/iptables.sh stop
>
> # The secondary network interface
> auto eth1
> #iface eth0 inet dhcp
> iface eth1 inet static
> address 192.168.42.100
> network 192.168.42.0
> netmask 255.255.255.0
> #broadcast 192.168.42.255
> gateway 192.168.42.100
This here looks wrong, you don't set a default gateway for the local
lan. Route will figure it out. If you comment that out restart
networking, one of the interfaces (Hopefully eth0) will have a default
entry in 'route'. like:
caprica:~# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.0.0 * 255.255.255.0 U 0 0 0 eth1
211.31.0.0 * 255.255.240.0 U 0 0 0 eth0
default c211-31-0-1.roc 0.0.0.0 UG 0 0 0 eth0
caprica:~#
HTH,
Adrian
--
24x7x365 != 24x7x52 Stupid or bad maths?
<erno> hm. I've lost a machine.. literally _lost_. it responds to
ping, it works completely, I just can't figure out where in my
apartment it is.
Reply to: