Assigning an IP address manually

Christian christian08 at runbox.com
Sun Sep 23 14:37:46 UTC 2007


Hi Geoff and all,
I've got it working now, but I need to specify the DNS server. Where do I do that?
Many 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