1855226 Members
4546 Online
104109 Solutions
New Discussion

Re: Help needed in GateD

 
manaav
New Member

Help needed in GateD

Hi All,

I have query regarding configuration of Static route in Gated.
Does static route added/configured through gated get stored in kernel routing table? If no, how to add the route to kernel routing table?
Could you please confirm on this.

For example, RIP routes learned by gated are reflected in kernel routing table, similarly should not static routes also be reflected in kernel routing table?

Thanks in advance,

With regards,
Manav
6 REPLIES 6
Steven E. Protter
Exalted Contributor

Re: Help needed in GateD

Shalom,

default route is read from /etc/rc.config.d/netconf and remains in the kernel while the network is up.

Additional routes can be defined there or defined with the route command.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
SKR_1
Trusted Contributor

Re: Help needed in GateD

You can use route command to add routes.

Thanks

SKR
SKR_1
Trusted Contributor

Re: Help needed in GateD

route add net {network-address} netmask {subnet} {router-address}

Let us assume your router address is 192.168.1.254 and network ID is 192.168.1.0/24, then you can type route command as follows:
# route add net 192.168.1.0 netmask 255.255.255.0 192.168.1.254

OR

To add a default route:
# route add default 192.168.1.254

Verify that (display) routing table is updated (display routing table):
# netstat -nr

Test it i.e. try to ping or send nslookup request:
# ping mycorp.com

To flush all routing entries use command [quite handy to clean your gordian knot ;)] :
# route -f

Thanks

SKR
manaav
New Member

Re: Help needed in GateD

Hi,

Thanks a lot for your reply.

If I have not mistaken, the command 'route add' is provided in Linux to add static routes.
Similarly, there is provision in Gated as well where we can add static routes.
e.g. static
Kindly refer to the following link:
http://osr600doc.sco.com/en/NET_tcp/iproutingC.gated_static_state.html
One more thing is I am adding static routes through Gated CLI not through gated.conf.

I wanted to confirm whether routes added in this way get stored in kernel routing table or not.

Regards,
Manav
rick jones
Honored Contributor

Re: Help needed in GateD

Are you running gated on HP-UX or on Linux? FWIW, this is an _HP-UX_ networking forum :)

The "route" command is available on just about any Unix or Unix-like (eg Linux) system. The netconf file is specific to HP-UX.

It is rather uncommon for a HP-UX system to need to run GateD - what sort of situation has you needing to run a routing protocol daemon?
there is no rest for the wicked yet the virtuous have no pillows
manaav
New Member

Re: Help needed in GateD

I am running GateD on VXWorks.

I could not find any communities which is purely dedicated to GateD. Thats why I posted my query on this forum thinking I would get some pointers.

I believe knowledge never goes in vain no matter in what form it is. Thanks for sharing your knowledge.

Regards,
Manav