1835296 Members
2284 Online
110078 Solutions
New Discussion

Static Routes

 
Karthik S S
Honored Contributor

Static Routes

Hi,

We have planned to configure 4 Networks with static routing. The rough network plan is given below,

NW Range - 192.168.1.0, Hosts per N/W - 6

Subnet Mask - 255.255.255.248

Network -1 : 192.168.1.8
Host1 - has two NICs - one for LAN and the other for Routing the other network (Network2).
host1-LAN : 192.168.1.9
host1-External : 10.0.0.1

Network-2 : 192.168.1.16
Host1 - has two NICs - one for LAN and the other for Routing the other network (Network1).
host1-LAN : 192.168.1.17
host1-External : 10.0.0.2
Host2 - has two NICs - one for LAN and the other for Routing the other network (Network3)
host2-LAN : 192.168.1.18
host2-External : 11.0.0.1


Network3 : 192.168.1.24
Host1 - has two NICs - one for LAN and the other for Routing the other network (Network2).
host1-LAN : 192.168.1.25
host1-External : 11.0.0.2
Host2 - has two NICs - one for LAN and the other for Routing the other network (Network4)
host2-LAN : 192.168.1.26
host2-External : 12.0.0.1

Network4 : 192.168.1.32
Host1 - has two NICs - one for LAN and the other for Routing the other network (Network3).
host1-LAN : 192.168.1.33
host1-External : 12.0.0.2

Now please help me in configuring Static Route entries in these routers.

Thanks,
Karthik S S
For a list of all the ways technology has failed to improve the quality of life, please press three. - Alice Kahn
4 REPLIES 4
John Waller
Esteemed Contributor

Re: Static Routes

Not sure whether I've understand what you are requiring as this appears over the top, but take a look at these entries to be entered into the /etc/rc.config.d/netconf file

Network 1

Host1

INTERFACE_NAME[0]=lan0
IP_ADDRESS[0]=192.168.1.9
SUBNET_MASK[0]=255.255.255.248
BROADCAST_ADDRESS[0]=""
INTERFACE_STATE[0]=""
DHCP_ENABLE[0]=0

INTERFACE_NAME[0]=lan1
IP_ADDRESS[0]=10.0.0.1
SUBNET_MASK[0]=255.255.255.248
BROADCAST_ADDRESS[0]=""
INTERFACE_STATE[0]=""
DHCP_ENABLE[0]=0

ROUTE_DESTINATION[0]=net 192.168.1.16
ROUTE_MASK[0]=255.255.255.248
ROUTE_GATEWAY[0]=10.0.0.1
ROUTE_COUNT[0]=1
ROUTE_ARGS[0]=""

Any clients on this network will need a gateway address of 192.168.1.9


Network 2

host1

INTERFACE_NAME[0]=lan0
IP_ADDRESS[0]=192.168.1.17
SUBNET_MASK[0]=255.255.255.248
BROADCAST_ADDRESS[0]=""
INTERFACE_STATE[0]=""
DHCP_ENABLE[0]=0

INTERFACE_NAME[0]=lan1
IP_ADDRESS[0]=10.0.0.2
SUBNET_MASK[0]=255.255.255.248
BROADCAST_ADDRESS[0]=""
INTERFACE_STATE[0]=""
DHCP_ENABLE[0]=0

ROUTE_DESTINATION[0]=net 192.168.1.8
ROUTE_MASK[0]=255.255.255.248
ROUTE_GATEWAY[0]=10.0.0.2
ROUTE_COUNT[0]=1
ROUTE_ARGS[0]=""

Host2

INTERFACE_NAME[0]=lan0
IP_ADDRESS[0]=192.168.1.18
SUBNET_MASK[0]=255.255.255.248
BROADCAST_ADDRESS[0]=""
INTERFACE_STATE[0]=""
DHCP_ENABLE[0]=0

INTERFACE_NAME[0]=lan1
IP_ADDRESS[0]=11.0.0.1
SUBNET_MASK[0]=255.255.255.248
BROADCAST_ADDRESS[0]=""
INTERFACE_STATE[0]=""
DHCP_ENABLE[0]=0

ROUTE_DESTINATION[0]=net 192.168.1.24
ROUTE_MASK[0]=255.255.255.248
ROUTE_GATEWAY[0]=11.0.0.1
ROUTE_COUNT[0]=1
ROUTE_ARGS[0]=""

Any clients on this network will need gateway entries of 192.168.1.17 and/or 192.168.1.18

I hope this gives you an idea.



John Waller
Esteemed Contributor

Re: Static Routes

Not sure whether I've understand what you are requiring as this appears over the top, but take a look at these entries to be entered into the /etc/rc.config.d/netconf file

Network 1

Host1

INTERFACE_NAME[0]=lan0
IP_ADDRESS[0]=192.168.1.9
SUBNET_MASK[0]=255.255.255.248
BROADCAST_ADDRESS[0]=""
INTERFACE_STATE[0]=""
DHCP_ENABLE[0]=0

INTERFACE_NAME[0]=lan1
IP_ADDRESS[0]=10.0.0.1
SUBNET_MASK[0]=255.255.255.248
BROADCAST_ADDRESS[0]=""
INTERFACE_STATE[0]=""
DHCP_ENABLE[0]=0

ROUTE_DESTINATION[0]=net 192.168.1.16
ROUTE_MASK[0]=255.255.255.248
ROUTE_GATEWAY[0]=10.0.0.1
ROUTE_COUNT[0]=1
ROUTE_ARGS[0]=""

Any clients on this network will need a gateway address of 192.168.1.9


Network 2

host1

INTERFACE_NAME[0]=lan0
IP_ADDRESS[0]=192.168.1.17
SUBNET_MASK[0]=255.255.255.248
BROADCAST_ADDRESS[0]=""
INTERFACE_STATE[0]=""
DHCP_ENABLE[0]=0

INTERFACE_NAME[0]=lan1
IP_ADDRESS[0]=10.0.0.2
SUBNET_MASK[0]=255.255.255.248
BROADCAST_ADDRESS[0]=""
INTERFACE_STATE[0]=""
DHCP_ENABLE[0]=0

ROUTE_DESTINATION[0]=net 192.168.1.8
ROUTE_MASK[0]=255.255.255.248
ROUTE_GATEWAY[0]=10.0.0.2
ROUTE_COUNT[0]=1
ROUTE_ARGS[0]=""

Host2

INTERFACE_NAME[0]=lan0
IP_ADDRESS[0]=192.168.1.18
SUBNET_MASK[0]=255.255.255.248
BROADCAST_ADDRESS[0]=""
INTERFACE_STATE[0]=""
DHCP_ENABLE[0]=0

INTERFACE_NAME[0]=lan1
IP_ADDRESS[0]=11.0.0.1
SUBNET_MASK[0]=255.255.255.248
BROADCAST_ADDRESS[0]=""
INTERFACE_STATE[0]=""
DHCP_ENABLE[0]=0

ROUTE_DESTINATION[0]=net 192.168.1.24
ROUTE_MASK[0]=255.255.255.248
ROUTE_GATEWAY[0]=11.0.0.1
ROUTE_COUNT[0]=1
ROUTE_ARGS[0]=""

Any clients on this network will need gateway entries of 192.168.1.17 and/or 192.168.1.18

I hope this gives you an idea.



Karthik S S
Honored Contributor

Re: Static Routes

Hi All,

Thanks for the replies. I also referred to the following post,

http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x41e4aff9e020f84b976d697a73d7bb91,00.html

Thanks,
Karthik S S
For a list of all the ways technology has failed to improve the quality of life, please press three. - Alice Kahn
Ron Kinner
Honored Contributor

Re: Static Routes

You may run into the ndd check subnet problem if you are running 11.0. Your 192.168.1.0 255.255.255.248 violates an obsolete RFC's restriction on using the first subnet when you break a class down into smaller subnets.


ndd -get /dev/ip ip_check_subnet_addr

If it comes back with a 1 then you can expect problems with it.

ndd -get /dev/ip ip_check_subnet_addr 0

to fix the problem and also edit /etc/rc.config.d/nddconf to add

TRANSPORT_NAME[0]=ip
NDD_NAME[0]=ip_check_subnet_addr
NDD_VALUE[0]=0

Use the next higher integer in the brackets if you already have entries.

Ron