1847665 Members
3330 Online
110265 Solutions
New Discussion

Re: Routing table

 
Kenn Chen
Advisor

Routing table

Currently, i have 2 NIC for 2 different segments, segment 1 and segment 2. segment 1 connect to switch 1 and segment 2 connect to siwtch 2. Therefore , i want to know how to configure that all my server can talk each other. segment 1 can talk to segment 2. Purpose of segment 1 is production and segment 2 is for backup purpose. thanks.
Cyber Zen
4 REPLIES 4
Sebastian Galeski_1
Trusted Contributor

Re: Routing table

Hi
try to set this serwer as default router for this two segments:
#route add net ....
look man route
or for permament modify
#/etc/rc.config.d/netconf

regards seba
Jim Butler
Valued Contributor

Re: Routing table

/etc/rc.config.d/netconf
set up ip, mask, and default router for interface [0] and [1],

add aliases for the nic cards in /etc/hosts.

check /etc/rc.config.d/namesvrs for any name configurations, (yp, etc)
good luck
Man The Bilge Pumps!
James Beamish-White
Trusted Contributor

Re: Routing table

Hiya.

Assuming seg1 is 192.168.1.x and seg2 is 192.168.2.x, switch IP is ...1 and machine IP is ...100

configure lan0 to be 192.168.1.100
configure lan1 to be 192.168.2.100

configure default route to be switch 1

root@myserver> route add default netmask 255.255.255.0 192.168.1.1

configure backup route to use switch 2

root@myserver> route add net 192.168.2.0 netmask 255.255.255.0 192.168.2.1

Edit the /etc/rc.config.d/netconf file to reflect above changes.


I think that's all.

Cheers!
James
GARDENOFEDEN> create light
Shannon Petry
Honored Contributor

Re: Routing table

Sounds more like you want the server with 2 nic's to be a router/gateway between the networks.

All you need to do is have ip_forwarding enabled on the server with 2 nics.
ndd -set /dev/ip ip_forarding 1

On your clients, they will have to either know this machine then as a default router, or make static routes to each network using this host as the gateway.

Regards,
Shannon
Microsoft. When do you want a virus today?