How to add static IP via cmd line?
Senectus .
senectus at gmail.com
Wed Dec 22 22:56:56 UTC 2004
On Wed, 22 Dec 2004 18:08:00 +0100, Wander Boessenkool
<wander at tomaatnet.nl> wrote:
> On Wed, 2004-12-22 at 09:50 -0500, EdCrypt wrote:
> > Senectus . Wrote:
> > > How do you force a static IP, DNS, netmask and Gateway via the cmd
> > > line?
> > >
> > > --
> > > Ubuntu Warty 4.10
> > >
> > > --
> > > ubuntu-users mailing list
> > > ubuntu-users at lists.ubuntu.com
> > > http://lists.ubuntu.com/mailman/listinfo/ubuntu-users
> > ifconfig.
>
> ifconfig for the ip and netmask see 'man ifconfig'
> (sudo ifconfig eth0 192.168.10.10 netmask 255.255.255.0)
>
> /etc/resolv.conf for the dns -> man resolv.conf
> (sudo vi /etc/resolv.conf)
>
> route for the default gw -> man route
> (sudo route add default gw my.default.gateway)
>
> If you want your changes to be permanent edit /etc/network/interfaces,
> besides the man-page you can find a lot of info about this topic online,
> try http://www.tldp.org and look at their sections of how-to's and
> manuals.
>
> -Wander
Thanks very much John Vram and Wander, for taking the time to put in a
little extra description its appreciated :-)
(and perhaps it should be added to the www.ubuntuguide.org ?)
--
Ubuntu Warty 4.10
More information about the ubuntu-users
mailing list