Assigning an IP address manually

Christian christian08 at runbox.com
Sat Sep 22 23:01:16 UTC 2007


Hello Geoff,
Many thanks for the info. Will also have a look at the man pages.
All the best and thanks,
Christian


On 2007-09-23 at 01:53 Geoff Shang wrote:

>Hi,
>
>Here's how I have it in my /etc/network/interfaces file:
>
>auto lo  eth1
>
>iface lo inet loopback
>
>iface eth1 inet static
>         address 192.168.2.100
>         netmask 255.255.255.0
>         gateway 192.168.2.1
>
>Note that I intentionally am not configuring eth0.  Most people probably 
>would want to.
>
>Then you can use "ifup eth1" (or whatever your interface is) to make the 
>changes if you need to.  The "auto" line will make sure that it comes up
>at 
>startup.
>
>For more info, do "man 5 interfaces"
>
>Hope this helps,
>Geoff.
>
>_______________________________________________
>Blinux-list mailing list
>Blinux-list at redhat.com
>https://www.redhat.com/mailman/listinfo/blinux-list






More information about the Blinux-list mailing list