Changing Network parameters Col 311

Myles Green myles-green
Mon May 17 11:51:44 PDT 2004


On Thu, 2003-08-28 at 15:16, Javier Hernandez wrote:
> Hi all,
> 
> I am running Openlinux 3.1.1 in my portable.
> 
> I needed to change the network parameters (static IP, Netmask, gateway).
> <snip>

I always just run something like this for a static setup:

ifconfig $IFACE $IPNUM brodcast $BCAST netmask $MASK

/sbin/route add -net default gw $GTWAY netmask 0.0.0.0 metric 1

and them edit /etc/resolv.conf:

domain $DOMAIN 
search $DOMAIN
nameserver $IPNUM
nameserver $IPNUM

replace the variables with your own values and, of course do it as root.

HTH

Myles

-- 
Myles Green <myles-green at shaw.ca>



More information about the Linux-users mailing list