Click to See Complete Forum and Search --> : eth0 configuration?
bobtcowboy
08-06-2001, 03:01 PM
Ok.... I've temporarily swithced from having my net access via DHCP to getting it via a fixed IP
heh... where do I tell linux that? I tried editing the dhclient.conf file and using ifup -a and ifdown -a but that didn't work (which makes sense cuz I'w not using DHCP, right?)
so what file am i lookin for? And for future reference, is there a place to change it via GUI?
Bill
ifconfig xxx.xxx.xxx.xxx(<--your new ip addy) eth0 up
that should do it
scanez
08-06-2001, 03:48 PM
What distro? Does
ifconfig xxx.xxx.xxx.xxx eth0 up
change it permanently, or just until the comp is rebooted?
SC
bobtcowboy
08-06-2001, 04:40 PM
Originally posted by scanez:
<STRONG>What distro? Does
ifconfig xxx.xxx.xxx.xxx eth0 up
change it permanently, or just until the comp is rebooted?
SC</STRONG>
Debian - Progeny
and I'm curious about that too...
Bill
Just till you reboot. You'll want to put that command into a init script.
rc.local or rc.boot or something.
Evil Jeff
08-06-2001, 06:35 PM
Also if you are using slackware or most rpm based distros the command netconfig or netconf should work. If it's mandrake, go into DrakConf or in most linux distros, linuxconf is always a good one for configurating everything imaginable.
saeed_contractor
08-06-2001, 10:53 PM
have you tried using netconfig. That should give you an option to set an ip, netmask, gateway, and dns server.
scanez
08-07-2001, 02:24 AM
Originally posted by bobtcowboy:
<STRONG>Debian - Progeny
and I'm curious about that too...
Bill</STRONG>
Ah hah! Debian, well then I can help more. Edit your /etc/network/interfaces file as follows:
auto eth0
iface eth0 inet static
address xxx.xxx.xxx.xxx
network yyy.yyy.yyy.yyy
netmask zzz.zzz.zzz.zzz
broadcast www.www.www.www (http://www.www.www.www)
where the x,y,z, and w's are replaced by the appropriate addresses (actually I don't think the broadcast is required, but I'm not sure).
Hope this helps
SC
bobtcowboy
08-07-2001, 03:44 AM
Originally posted by scanez:
<STRONG>
auto eth0
iface eth0 inet static
address xxx.xxx.xxx.xxx
network yyy.yyy.yyy.yyy
netmask zzz.zzz.zzz.zzz
broadcast www.www.www.www (http://www.www.www.www)
where the x,y,z, and w's are replaced by the appropriate addresses (actually I don't think the broadcast is required, but I'm not sure).
</STRONG>
hmmmm.. which of these (if any?) translate to "DNS"? In windows, I had to specify an IP, a gateway, a subnetmask and two DNS entries
Do I need all that in linux too? I'm assuming that IP is the address, netmask is the subnet, and network is gateway(?) that would make broadcast the DNS?
hmmm... going to try this out
Bill
[ 07 August 2001: Message edited by: bobtcowboy ]
bobtcowboy
08-07-2001, 03:48 PM
ok, I can ping an IP, but not a domain, so methinks its a DNS entry problem. where do I enter my name server? I found something of interest in /etc/resolv.conf but it didn't work... any more help would be appreciated ;)
my /etc/resolv.conf looks like this:
search
nameserver 123.456.78.90
nameserver 123.456.78.91
obviously those aren't the numbers but you get the idea... and thats all thats in that file... am I looking in the wrong place?
Thanks again,
Bill