Network Troublshooting > General Networking Support in Linux

Newbie ifconfig eth0 problem.

(1/1)

lugoteehalt:
Doing 'ifconfig' shows lo - nothing about eth0: should there be?

Doing 'ifconfig eth0 up' followed by 'ifconfig' gives both lo and eth0. If this is what should happen how can eth0 be made 'up' during startup? - assume this is necessary since I only have one keyboard between the two computers I'm trying to connect.

Thanks any help.

neo:
my eth0 gets activated at startup always...
i have done it by....... logging as root

--- Code: --- setup
--- End code ---
going to "system services" and then selecting the service  "network"  it automatically starts with that, every time i boot.

Ricky:
lugo!!
What distro u are using ?
If it is redhat or redhat similar then u can add a line to /etc/rc.d/rc.local like

--- Code: ---ifconfig eth0 <desired ip> netmask <desired netmask usually 255.255.255.0> up
--- End code ---
and it will start and will get an adress assigned to it automatically..

lugoteehalt:
Hello Ricky! - bloody hell I didn't expect networking's Mike Tyson.

Am using Debian Potato.

Thanks both - will try both things.

 :D

lugoteehalt:
For referrence:

On Debian get ethernet, nic, cards up on startup by changing the /etc/network/interfaces file - think that's the one. It's the file that ifup and ifdown read. Yes:
# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)

# The loopback interface
iface lo inet loopback

#lugo added the next block.
iface eth0 inet static
            address 192.168.1.1
            netmask 255.255.255.0

The cards then come up on startup. :)

Navigation

[0] Message Index

Go to full version