Databases
cancel
Showing results for 
Search instead for 
Did you mean: 

When I chaneg netmask ifconfig and spee lanadmin which files should be edited

MQ'ski
Regular Advisor

When I chaneg netmask ifconfig and spee lanadmin which files should be edited

Hi. Im going to change netmaska and speed online...
which files should be modified after that.
6 REPLIES
Stefan Farrelly
Honored Contributor

Re: When I chaneg netmask ifconfig and spee lanadmin which files should be edited


For netmask /etc/rc.config.d/netconf

For speed, it depends on which driver your lancard is using, you can check by doing ioscan -fknClan and then match it to this list;

Driver duplex file Description Software
btlan hpbtlanconf
btlan0 hpeisabtconf
btlan1 hpbasetconf
btlan3 hpbase100conf Internal (core) LAN card
btlan4 hpgsc100conf
btlan5 hppci100conf "external" PCI card A5230A
btlan6 hpsppci100conf V-class PCI lan card
gelan hpgelanconf GigaBit card A4926A


All the files are in /etc/rc.config.d
If youre going to do it online you should test it from the console by doing /sbin/init.d/net stop then start.
Im from Palmerston North, New Zealand, but somehow ended up in London...
MQ'ski
Regular Advisor

Re: When I chaneg netmask ifconfig and spee lanadmin which files should be edited

this is ioscan

lan 0 10/4/4.1 lan3 CLAIMED INTERFACE
/dev/diag/lan0 /dev/ether0 /dev/lan0
lan 1 10/12/6 lan2 CLAIMED INTERFACE Built-in LAN
/dev/diag/lan1 /dev/ether1
lan 2 10/16/8 btlan1 UNCLAIMED UNKNOWN HP HP-PB 100 Base TX car


What if it is lan3 or lan2 which file?
Thanks in advnance
James Beamish-White
Trusted Contributor

Re: When I chaneg netmask ifconfig and spee lanadmin which files should be edited

For the netmask, it's the /etc/rc.config.d/netconf file for all interfaces:

#lan0:

IP_ADDRESS[0]=4.3.2.1
SUBNET_MASK[0]=255.255.255.0
INTERFACE_NAME[0]=lan0
BROADCAST_ADDRESS[0]=4.3.2.255
INTERFACE_STATE[0]=up
DHCP_ENABLE[0]=0
ROUTE_DESTINATION[0]="default"
ROUTE_MASK[0]=""
ROUTE_GATEWAY[0]=gateway
ROUTE_COUNT[0]=1

#lan1:

IP_ADDRESS[1]=4.3.2.2
SUBNET_MASK[1]=255.255.255.0
INTERFACE_NAME[1]=lan1
BROADCAST_ADDRESS[1]=4.3.2.255
INTERFACE_STATE[1]=up
DHCP_ENABLE[1]=0
ROUTE_DESTINATION[1]="default"
ROUTE_MASK[1]=""
ROUTE_GATEWAY[1]=gateway
ROUTE_COUNT[1]=1

... and any other interfaces, based on what is in the [] brackets.

I'm not sure, but I believe the card speed is set up in /etc/rc.config.d/hpbase100conf

Cheers!
James
GARDENOFEDEN> create light
Judy Traynor
Valued Contributor

Re: When I chaneg netmask ifconfig and spee lanadmin which files should be edited

netconf is where you have the settings for your netmask, but you may control your speed through the hpetherconf, or equivalent file -

speed is in bits, I believe
Sail With the Wind
James R. Ferguson
Acclaimed Contributor

Re: When I chaneg netmask ifconfig and spee lanadmin which files should be edited

Hi Marcin:

For your btlan1 card (HP-PB 100 Base TX product; #A3495A) you should set the speed to "100FD". This turns off auto-negotiation. This setting is made in '/etc/rc.config.d/hpbasetconf' on pre 11.11 servers and in '/etc/rc.config.d/hpbtlanconf' on 11.11.

Regards!

...JRF...
Sajid_1
Honored Contributor

Re: When I chaneg netmask ifconfig and spee lanadmin which files should be edited

hello,

You need to edit two files:
/etc/rc.config.d/netconf - netmask
/etc/rc.config.d/hpbasetconf- speed of 100BT lan card.

hth
learn unix ..