Operating System - HP-UX
1829913 Members
3226 Online
109993 Solutions
New Discussion

No gateway ip on routing table, Attn: Darrel Louis

 
bassey essien_1
Frequent Contributor

No gateway ip on routing table, Attn: Darrel Louis

Attn: Darrel Louis, i pinged the name server, can't find servername, no response. But when doing nslookup to another host within the network, it works fine, the search line in /etc
/resolv.conf is ok. but i noticed that the netstat -rn command and /etc/rc.config.d/
netconf file does not specified gateway ip on the routing table. Do i need to specify the ip
address again, there is already an ip entry in the /etc/hosts file, if this is the case,how do
i re-enter ip address from command line.
thanks, bassey.
3 REPLIES 3
rick jones
Honored Contributor

Re: No gateway ip on routing table, Attn: Darrel Louis

if by "gateway ip" you mean a default route entry, that gets configured either via set_parms, or perhaps SAM. the data is stored in the file /etc/rc.config.d/netconf. once the information is in the netconf file, it will be applied on every boot.

if one only does a "route" command from the command line, that information is lost on reboot.
there is no rest for the wicked yet the virtuous have no pillows
Darrel Louis
Honored Contributor

Re: No gateway ip on routing table, Attn: Darrel Louis

Hi Bassey,

Sorry for replying so late.
Attached you will find a document.

You can run the following command to change your network settings:
set_parms addl_netw, this is for changing Gateway or subnet.
set_parms ip_address , this is when you want to change your ip-address.

Once more sorry for the late response,
if you need additional info let me know.
Darrel Louis
Honored Contributor

Re: No gateway ip on routing table, Attn: Darrel Louis

bassey,

Also read the man page for route.
In /usr/share/doc, there is a document, which explains something about Route Gateway etc.
10.20RelNotes