1834928 Members
2527 Online
110071 Solutions
New Discussion

Clean Up netconf file?

 
SOLVED
Go to solution
Justin Willoughby
Regular Advisor

Clean Up netconf file?


My netconf file (/etc/rc.config.d/netconf) looks like this:

HOSTNAME="hostname"
OPERATING_SYSTEM=HP-UX
LOOPBACK_ADDRESS=127.0.0.1
IP_ADDRESS[0]=x.x.x.x
SUBNET_MASK[1]=255.255.255.0
INTERFACE_NAME[1]=lan1
BROADCAST_ADDRESS[1]=x.x.x.255
LANCONFIG_ARGS[1]="ether"
DHCP_ENABLE[0]=0
ROUTE_DESTINATION[1]="default"
ROUTE_MASK[1]=""
ROUTE_GATEWAY[1]=x.x.x.1
ROUTE_COUNT[1]=1
ROUTE_ARGS[0]=""
GATED=0
GATED_ARGS=""
RDPD=0
RARPD=0
IP_ADDRESS[1]=x.x.x.x
INTERFACE_NAME[0]=lan1
SUBNET_MASK[0]=
ROUTE_GATEWAY[0]=x.x.x.1
ROUTE_COUNT[0]=1
ROUTE_DESTINATION[0]=default

This looks a little messed up to me. Like INTERFACE_NAME[0] & INTERFACE_NAME[1] point to the same lan1 and the IP_ADDRESS[0] & IP_ADDRESS[1] are the same.

The reason I ask is I am planning to use the internal lan card and figured one card would be [0] and [1] for the other.

I figured I could just clean this up but I wanted to check first.

Thanks,

- Justin
5 REPLIES 5
Mark Greene_1
Honored Contributor

Re: Clean Up netconf file?

before you edit the file, read the man page for lanscan.

HTH
mark
the future will be a lot like now, only later
S.K. Chan
Honored Contributor
Solution

Re: Clean Up netconf file?

Yes.. the part that you would want to clean up would lokk like this ..

# First LAN card
INTERFACE_NAME[0]=lan0
IP_ADDRESS[0]= ....
SUBNET_MASK[0]= .....
BROADCAST_ADDRESS[0]= .....
LANCONFIG_ARGS[0]="ether"
DHCP_ENABLE[0]=0

# Second LAN card
INTERFACE_NAME[1]=lan1
IP_ADDRESS[1]= .....
SUBNET_MASK[1]= ......
BROADCAST_ADDRESS[1]= .......
LANCONFIG_ARGS[1]="ether"
DHCP_ENABLE[1]=0
hpuxrox
Respected Contributor

Re: Clean Up netconf file?

Justin,

Looks like you could do some house cleaning.
You could put all the intance numbers in order so it would be easer to see. Fix lan1 so it doesnt have both [0] and [1] intance numbers.

Looks good....
Justin Willoughby
Regular Advisor

Re: Clean Up netconf file?

Thanks to everyone who replied. I think SAM was used to configure lan1 interface. Not sure why it created the netconf file like it did but I will fix it...

Thanks again,

- Justin
Bill Hassell
Honored Contributor

Re: Clean Up netconf file?

You're reasoning is correct. All the entries for xxxx[0] are for lan0 and xxx[1] are for lan1, etc. If you need a 'clean' netconf file, copy it from /usr/newconfig/etc/rc.config.d


Bill Hassell, sysadmin