1833777 Members
1837 Online
110063 Solutions
New Discussion

lan config

 
mla
Occasional Contributor

lan config

Hello,

someone can explain how can i introduce my station into the actual lan
ip 10.32.250.22
netmask 255.255.255.0
gateway 10.32.250.254 (optionnal but iwant only make connection behind a HUB)

What files can i modify?
What parameters can i introduce?
if my interface lan is "lan0"

Thanks a lot
5 REPLIES 5
T G Manikandan
Honored Contributor

Re: lan config

The simpler way would be doing a
#set_parms ip_address
then
#set_parms addl_netwrk


you can also do like

INTERFACE_NAME[0]=lan0
IP_ADDRESS[0]=10.32.250.22
SUBNET_MASK[0]=255.255.255.0
BROADCAST_ADDRESS[0]=""
INTERFACE_STATE[0]=""
DHCP_ENABLE[0]=0

ROUTE_DESTINATION[0]=default
ROUTE_MASK[0]=""
ROUTE_GATEWAY[0]=10.32.250.254
ROUTE_COUNT[0]=1
ROUTE_ARGS[0]=""

Make/Change the above entry in /etc/rc.config.d/netconf file and then do a
/sbin/init.d/net stop
/sbin/init.d/net start
Mark Grant
Honored Contributor

Re: lan config

ifconfig lan0 10.32.250.22 255.255.255.0

route add default gateway 10.32.250.254 1

Then edit /etc/rc.config.d/netconf and fill up all the fields.

Should be OK.
Never preceed any demonstration with anything more predictive than "watch this"
Mei Jiao
Respected Contributor

Re: lan config

Agree with TG Manikandan, it's simpler to use the commands:
# set_parms ip_address
# set_parm addl_netwrk

Please note that change IP address (like using the set_parms command) will lead you a reboot, which is required.
Mark Grant
Honored Contributor

Re: lan config

Ong,

You do not need to re-boot the machine to change an IP address. It may or may not be kinder to shut the interface down first "ifconfig lan0 down" but is almost certainly not actually required.

You may get the odd application waiting for things that it'll never get but in practice this doesn't cause any problems.


Never preceed any demonstration with anything more predictive than "watch this"
Mei Jiao
Respected Contributor

Re: lan config

Thanks for enlighten me. I'll take note.