Operating System - HP-UX
1832365 Members
3611 Online
110041 Solutions
New Discussion

Specifying gateway information

 
SOLVED
Go to solution
Nino Guba
Advisor

Specifying gateway information

Hi.

Question: Where can I view/modify the default gateway information? On SAM -> Networking and Communications -> Network Interface Cards, it says Default Gateway "none specified" but none on the menus lets me modify this info.

Help anyone? Thanks.
10 REPLIES 10
John Poff
Honored Contributor

Re: Specifying gateway information

Hi,

I'd just take a look at the /etc/rc.config.d/netconf file and see what the default gateway is set for.

JP
John Jimenez
Super Advisor

Re: Specifying gateway information

/etc/rc.config.d/netconf file
Hustle Makes things happen
Ranjith_5
Honored Contributor

Re: Specifying gateway information

Hi Nino,

Do the following.

#vi /etc/rc.config.d/netconf

and modify ROUTE_GATEWAY[0]=" as per your requirement.

eg:-

# IMPORTANT: for 9.x-to-10.0 transition, do not put blank lines between
# the next set of statements

ROUTE_DESTINATION[0]=default
ROUTE_MASK[0]=""
ROUTE_GATEWAY[0]="10.10.10.1"
ROUTE_COUNT[0]=""
ROUTE_ARGS[0]=""



Regards,
Syam
A. Clay Stephenson
Acclaimed Contributor

Re: Specifying gateway information

Well, real admins don't use sam but edit the file /etc/rc.config.d/netconf

you make enties like this:
ROUTE_DESTINATION[0]=default
RAUTE_MASK[0]=""
ROUTE_GATEWAY[0]=10.1.0.1
ROUTE_COUNR[0]=1
ROUTE_ARGS[0]=""

but you can also do it in Sam and then check the file entries afterwards:

Sam->Networking & Communications ->Routes ->Actions -> Add Default Routes
If it ain't broke, I can fix that.
Nino Guba
Advisor

Re: Specifying gateway information

Ok I admit I'm not a real system admin. I'm just helping out to speed things up configuring our server. Unfortunately I have do get my hands dirty...

Now I was able to view the netconf file. Modified it. Do I need to do anything after for this to take effect?

I also noticed we dont have ROUTES in the Network and Communications part of SAM. Any idea why?

Thanks!
A. Clay Stephenson
Acclaimed Contributor
Solution

Re: Specifying gateway information

Well, now you need to execute the route command
e.g.

route add default 10.1.0.1 1

man route for details.

It's probably a better idea to reboot to make sure your entries in netconf are okay.
If it ain't broke, I can fix that.
A. Clay Stephenson
Acclaimed Contributor

Re: Specifying gateway information

As to why you don't have "Routes" under SAM, it's probably because you are running a version of HP-UX below 11.11. When you don't bother to mention the OS Version I am forced to use "The Force" and sometimes "The Force" is not with me.

On 11.0 versions, SAM-> Networking and Communications -> Hosts -> Local Hosts File -> Actions -> Configure Default Gateway

On 10.20 (and from memory so beware):
SAM-> Networking and Communications -> Internet Addresses -> Actions -> Modify Default Gateway

If it ain't broke, I can fix that.
Nino Guba
Advisor

Re: Specifying gateway information

Thanks! Now that my gateway is set. DNS now works as expected.
Nino Guba
Advisor

Re: Specifying gateway information

I'm using HP 11.00 64-bit (too late huh)...
Nino Guba
Advisor

Re: Specifying gateway information

Closing this thread. You're all very helpful. Thanks!