[Voyage-linux] Setting Static IP & DNS Server
Ron Wickersham
(spam-protected)
Fri Nov 9 04:33:44 HKT 2007
On Mon, 5 Nov 2007, Robert Rawlins - Think Blue wrote:
> Hello Guys,
>
> I've got a requirement on a couple of my systems to configure static IP and
> DNS settings as they're being placed into a network environment which
> doesn't support DHCP so it will be unable to lease its own details.
you don't say what interface you want to configure, so i'm just going to
asssume that you need to configure eth0. if you need to configure another
one, change accordingly.
> This is something I've not done before with Linux, at least, not
> successfully :-D so thought I'd ask you guys your opinions on the best way
> to handle it. What I can tell you at the moment is that if I use the
> following settings on my windows notebook then I'm able to connect to the
> network and internet no trouble at all, so I'm guessing it's simply a case
> of setting these same details on my voyage system.
from the command line, you use ifconfig, but i don't think you want to just
make temorary changes, and instead want to change the configuration files
so it boots up configured on the addresses you list below.
> IP: 10.111.108.2
> Subnet: 255.255.255.0
> Gateway: 10.111.108.1
> Primary DNS Server: 10.50.10.10
> Secondary DNS Server: 10.50.10.11
> I'll need some nice simple Simon-Says step by steps for doing this otherwise
> I'm bound to get lost when trying to set it up. I do have some limited
> experience of modifying my /etc/network/interfaces file but certainly
> wouldn't say I really know what I'm doing.
1) edit the /etc/network/interfaces file stanza for the desired interface:
auto eth0
iface eth0 inet static
address 10.111.108.2
netmask 255.255.255.0
broadcast 10.111.108.255
gateway 10.111.108.1
2) edit the /etc/resolv.conf file:
nameserver 10.50.10.10
nameserver 10.50.10.11
-ron
--
/~\ The ASCII Ribbon Campaign
\ / No HTML/RTF in email
X No Word docs in email
/ \ Respect for open standards
-------------- next part --------------
_______________________________________________
Voyage-linux mailing list
Voyage-linux at list.voyage.hk
http://list.voyage.hk/mailman/listinfo/voyage-linux
More information about the Voyage-linux
mailing list