** Reply to message from [EMAIL PROTECTED] on Thu, 12 Sep 2002 07:38:38 -0700
> In <[EMAIL PROTECTED]>, on > 09/11/2002 at 09:44 PM, > Rupesh Moharana <[EMAIL PROTECTED]> said: > > > Can any one please help me to setup a dual NIC > >gateway using linux os. I have tow ip address one is > >for Global internet (etho) and another is for my local > >intranet (eth1). My problem is using the network > >configuration utility i have configured every > >parameter for the global IP address in eth0. > > >IP Address. > >Subnet mask. > >default gateway. > > Look in /etc/sysconfig > > The file 'network' will contain your default route (gateway). The > network-scripts directory will contain the startup scripts for each > interface, ifcfg-eth0 and ifcfg-eth1. These contain all the pertinent > info for IP addres, subnet mask, etc for the appropriate interface. > > >DNS 1 ip address > >DNS 2 ip address. > > Look at /etc/resolv.conf. This is your DNS resolver file, and that's > where you specify your DNS servers. > > You'll also need to set up IP Forwarding. Normally this is done by > > `echo 1 > /proc/sys/net/ivp4/ip_forward` > > But that only sticks until the next reboot, by which time you will have > completely forgotten about it. (Might be months or years from now.) That > means the command needs to be in a startup script somewhere. If you don't > have ip_forward set, you won't get communication in one interface and out > the other. Insert the following line into your /etc/sysctl.conf: #Controls IP packet forwarding net.ipv4.ip_forward = 1 If the lines are already there, make sure it is set to "1" and then restart your sysctl.conf by running (as root) : /sbin/sysctl -p That should set you up without having to reboot and will ensure that packet forwarding will be enabled on subsequent reboots. jb -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe https://listman.redhat.com/mailman/listinfo/redhat-list