[TriLUG] RH 9.0 routing
Greg Brown
gregbrown at mindspring.com
Mon Sep 8 16:49:33 EDT 2003
netstat -rn gives me an odd response:
[root at babblefish network-scripts]# netstat -rn
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window
irtt Iface
192.168.16.0 0.0.0.0 255.255.255.0 U 0 0
0 eth1
192.168.15.0 0.0.0.0 255.255.255.0 U 0 0
0 eth0
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0
0 eth1
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0
0 lo
0.0.0.0 192.168.15.1 0.0.0.0 UG 0 0
0 eth0
Where on earth is that 168.254.0.0 eth1 coming from? I certainly have
not set that up in any of my configuration files and the actual port on
the back of eth1 isn't connected to anything yet.
On a side note, I thought that routing was supposed to "automagically"
work, but it doesn't seem to want to cooperate on my machine just yet.
Greg
On Monday, Sep 8, 2003, at 10:29 US/Eastern, Jon Carnes wrote:
> Always suspect Firewalls!
>
> Check to see if your Firewalls are up, if so, drop them for your
> testing. The routing should be setup automagically, but you can check
> on it by running:
> netstat - nr
>
> The -r says tell me the routes, the -n says, leave everything as
> numeric
> (no hostnames, please!). The output will look something like this:
>
> 192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
> 10.2.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth1
> 127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
> 0.0.0.0 192.168.1.1 0.0.0.0 UG 0 0 0 eth0
>
>
>
> On Mon, 2003-09-08 at 08:58, Greg Brown wrote:
>> I have a RH 9.0 machine and I need to set up routing. I'm working
>> totally from the command line as there is no GUI installed on this box
>> at all. Here's what I have and what I need:
>>
>> I have three 3com ethernet cards.
>>
>> eth0 will be connected to my ISP
>> eth1 will have a range of 192.168.15.0-254
>> eth2 will have a range of 192.168.16.0-254
>>
>> Here is my /etc/sysconfig/network
>> NETWORKING=yes
>> HOSTNAME=babblefish
>> GATEWAY=eth0
>> GATEWAYDEV=""
>> FORWARD_IPV4="yes"
>>
>> /etc/sysconfig/network-scripts/ifcfg-eth0 looks like:
>> DEVICE="eth0"
>> ONBOOT="yes"
>> IPADDR=""
>> NETMASK=""
>> BOOTPROTO="dhcp"
>>
>> /etc/sysconfig/network-scripts/ifcfg-eth1 looks like:
>> DEVICE="eth0"
>> ONBOOT="yes"
>> IPADDR=""
>> NETMASK=""
>> BOOTPROTO="dhcp"
>>
>> ...and so on.
>>
>> Since I have told this box that it should be forwarding packets and
>> the
>> gateway is eth0 (from /etc/sysconfig/network) one would think this
>> setup would work but it does not. If I cat
>> /proc/sys/net/ipv4/ip_forward I can see that it is set to 0 (i.e. no
>> routing). Setting this file to 1 via the echo 1
>>> /proc/sys/net/ipv4/ip_forward doesn't seem to work either.
>>
>> Any ideas?
>>
>> Greg
>
> --
> TriLUG mailing list :
> http://www.trilug.org/mailman/listinfo/trilug
> TriLUG Organizational FAQ : http://trilug.org/faq/
> TriLUG Member Services FAQ : http://members.trilug.org/services_faq/
> TriLUG PGP Keyring : http://trilug.org/~chrish/trilug.asc
>
More information about the TriLUG
mailing list