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
>
For a perminate solution, you will need to edit
/etc/sysconfig/network-scripts/ifcfg-eth1. You can do this by hand, you
use your faverate GUI. Basicly what you need is something like this:
DEVICE=eth1
BOOTPROTO=static
IPADDR=10.3.1.2
NETMASK=255.255.255.0
GATEWAY=10.3.1.1
This is assuming you want 10.3.1.2 for the IP of eth1, and it is a
static address. You did not specify. This will generate the required
route commands on bootup.
To get the routes now, you can use:
route add -net 10.3.1.0 netmask 255.255.255.0 eth1
route add default gw 10.3.1.1
(I think I did the format correct - working from memory.)
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