On Fri, 27 Apr 2001, Tim wrote:
>
> I'm helping to set up a rather odd network environment, and I'm
> running into some difficulties in the route command.
> This is what I want to accomplish:
> Destination Gateway Genmask Flags Metric Ref Use Iface
> domain * 255.255.255.0 U 0 0 0 eth0
> 10.3.1.0 * 255.255.255.0 U 0 0 0 eth1
> loopback * 255.0.0.0 U 0 0 0 lo
> default 10.3.1.1 0.0.0.0 UG 0 0 0 eth1
>
> ----
> This is what I have:
> Kernel IP routing table
> Destination Gateway Genmask Flags Metric Ref Use Iface
> 192.168.193.0 * 255.255.255.0 U 0 0 0 eth0
> 127.0.0.0 * 255.0.0.0 U 0 0 0 lo
> -----
>
> I've been reading the 'man route' but I can't seem to put it togther.
> Both eth0 and eth1 are up on the machine, but I have not added a working
> route on eth1.
>
> Any help would be appriciated.
>
> Thanks,
> -tm
>
I have not seen any replys to this one, so I'll take a shot.
The route for the second NIC is normaly created by the ifup scripts is
you have the ifcfg-eth1 set correctly. So, lets see if we can get
things set up correctly, instead of doing the route commands by hand
afterwords. What does /etc/sysconfig/network-scripts/ifcfg-eth1 look
like? If eth1 has a static IP, then it should look something like:
DEVICE=eth0
BOOTPROTO=static
IPADDR=10.3.1.x
NETMASK=255.255.255.0
GATEWAY=10.3.1.1
You did not supply the IP address for eth1, so replace x with the
correct number.
You may also need to add the HOSTNAME and DOMAIN entries to ether
ifcfg-eth0 or ifcfg-eth1, depending on what IP the host name and domain
corrospond to.
Mikkel
--
Do not meddle in the affairs of dragons,
for you are crunchy and taste good with ketchup.
_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list