Jeff wrote:
Hey all. Linux question - I have this nice big dual Xeon server, with two NIC's. Where, how, when, why, can I configure this beast, not as a router, but just as a host with two ways to get in.

eth0 is 192.168.0.39
eth1 is 192.168.1.139

I would like to be able to associate both NIC's to the same hostname, 'foo' - how is this accomplished?

Thanks much!

cd /etc/init.d/
ln -sf net.lo net.eth1
rc-update add net.eth1 default

vi /etc/conf.d/net
config_eth0=( "192.168.0.39/24 brd 192.168.0.255" )
config_eth1=( "192.168.1.39/24 brd 192.168.1.255" )

routes_eth0=( "default via 192.168.0.1" )

If you want more than one gw you'll need to turn on advanced routing in the kernel and then add a routes_eth1 line as well.

In DNS I'd do something like this

server          IN      A       192.168.0.39
server          IN      A       192.168.1.39

eth0.server     IN      A       192.168.0.39
eth1.server     IN      A       192.168.1.39

And map reverse DNS to the eth0 and eth1 names as well. It'll make troubleshooting easier if you have issues later on.

kashani
--
gentoo-user@gentoo.org mailing list

Reply via email to