[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: Firewall & Routing - help!

On Thu, 10 Jun 2004, Kevin F. Berrien wrote:

> Jeff Vian & others wrote:
>  > IIRC, the /etc/sysconfig/network file is used at boot, but not used 
> when doing a network restart, so that may be why the
>  > change in 'boot' vs 'network restart' routing.
> Well, my network file has nothing regarding the gateway, except for 
> GATEWAYDEV=eth0, as recommended here.  I removed that line, rebooted, 
> and still could get to the internet.  The only constant factor in 
> getting to the internet is the default route I see when I boot or route 
> add -net default gw dev eth0  (not network restart).

If you configure it correctly you do not have to add it by hand. To test
it do ifdown eth0 ; ifup eth0 Assuming eth0 is the connection to the internet.

>  > NOZEROCONF=yes in /etc/syconfig/network will remove the route for
>  >
> Tried it, didn't work.  Now that its been explained what the 
> route is, I'm not really concerned.

Since you do not show the output of ip ro, ip addr, ifconfig or route it is
kind of hard to say what is going on. Let me assure NOZEROCONF=yes does work.
You have to restart the interface that the 169.* route is on.

> All in all, its not a show stopper, but a). I'd like to be able to 

No it is not, it is just UGLY.

> restart the network and have things working correctly, b). its just not 
> right, and I can't leave it alone! <grin>.  Plus I'm learning from all 
> this... thanks again to everyone for help and suggestions.  Here are my 
> various scripts, etc...
> /etc/sysconfig/network
> HOSTNAME=choke

You spelled it wrong. it is NOZEROCONF= and if you put it in
/etc/sysconfig/network you only need it in 1 place for all of the interfaces.
IOW take it out of ifcfg-eth* and put it in network.

> # 3Com Corporation|3c905B 100BaseTX [Cyclone]
> DEVICE=eth0
Not sure about this. For sure static will work.


What is this? Either put in the correct value or rm it entirely?

> ONBOOT=yes
> TYPE=Ethernet

You set the gateway here and then... See below.

> /etc/sysconfig/network-scripts/ifcfg-eth1
> # DEC|DECchip 21041 [Tulip Pass 3]
> DEVICE=eth1
Same question as above.

> ONBOOT=yes
> TYPE=Ethernet

It looks like you are setting your default route to ""

> /etc/sysconfig/network-scripts/routes-eth1 (i didn't create this)

AFAIK these are wrong. There are supposed to be routes in there.
If you are not adding static routes (and until you get the basics working
you should not be) the file is not needed.

If you want to fix this show the output of "ip add" and ip ro. Then we can
see what is going on. Fixing this kind of stuff is simple but you have
to troubleshoot it logically or it will never work.

Also suggest you whack the GATEWAY= statments out of ifcfg-eth* and put
1 GATEWAY=ip-addr-of-your-gateway statment in /etc/sysconfig/network.
Barring that use system-config-network to set it up. It will "just work"
assuming you feed it the correct information. :-) If it for some reason still
does not work show the output of "ip ro" and "ip add" Also what show the
output of iptables -L. If there are rules in there turn off iptables until
you get basic networking working.

Make your /etc/sysconfig/network look something like this:

The above works.

(sylvester pts2) # ip ro dev eth2  scope link dev eth1  scope link dev lo  scope link
default via dev eth1
(sylvester pts2) # ip addr
1: lo: <LOOPBACK,UP> mtu 16436 qdisc noqueue
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet brd scope host lo
2: eth0: <BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast qlen 100
    link/ether 00:00:c0:d0:49:80 brd ff:ff:ff:ff:ff:ff
3: eth1: <BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast qlen 100
    link/ether 00:04:5a:7a:57:0c brd ff:ff:ff:ff:ff:ff
    inet brd scope global eth1
4: eth2: <BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast qlen 100
    link/ether 00:03:6d:18:c0:b2 brd ff:ff:ff:ff:ff:ff
    inet brd scope global eth2
(sylvester pts2)

Notice, no zeroconf address? :-)



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]