networking from the command line

Reindl Harald h.reindl at thelounge.net
Tue Aug 16 22:26:04 UTC 2011



Am 16.08.2011 23:59, schrieb Michael Hennebry:
> How do I turn on networking from the command line?

first configure it

> When I do a minimal install, Fedora 14 won't turn on networking for me.
> eth0 never gets an IP address.
> Where is the on-switch?

service network start

but without configuration useless

> Nothing I've tried gets the job done.
> In particular, ifconfig eth0 up does not produce an IP address.

how should it "procude" one?
this is not a gambling machine

se below a static standard configuration for eth0
you have always to edit this with VI or possible faster
with echo "full-line" >> /etc/sysconfig/network-scripts/ifcfg-eth0
per line you need (reset a file is "> filename" once)

[root at srv-rhsoft:~]$ cat /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
IPADDR=192.168.1.2
NETWORK=192.168.1.0
GATEWAY=192.168.1.1
BROADCAST=192.168.1.255
NETMASK=255.255.255.0
TYPE=Ethernet
BOOTPROTO=static
ONBOOT=yes
NM_CONTROLLED=no
USERCTL=no
IPV6INIT=no

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 262 bytes
Desc: OpenPGP digital signature
Url : http://lists.fedoraproject.org/pipermail/users/attachments/20110817/6adb5119/attachment.bin 


More information about the users mailing list