HowTo install network without gui or tui available?
Thomas Schweikle
tps at vr-web.de
Tue Jul 5 15:28:04 UTC 2011
Am 05.07.2011 16:03, schrieb Reindl Harald:
>
>
> Am 05.07.2011 15:50, schrieb Thomas Schweikle:
>> Hi!
>>
>> Since I could not find a working Howto for Fedora 15:
>>
>> How do I install networking without having gui or tui tools
>> available? Even without having the ability to use them (if they
>> where installed)?
>>
>> I could not find any description not using gui setup tools ... :-(
>
> echo "DEVICE=eth0" > /etc/sysconfig/network-scripts/ifcfg-eth0
> echo "" > /etc/sysconfig/network-scripts/ifcfg-eth0
> echo "IPADDR=10.0.0.99" > /etc/sysconfig/network-scripts/ifcfg-eth0
> echo "NETWORK=10.0.0.0" > /etc/sysconfig/network-scripts/ifcfg-eth0
> echo "GATEWAY=10.0.0.1" > /etc/sysconfig/network-scripts/ifcfg-eth0
> echo "BROADCAST=10.0.0.255" > /etc/sysconfig/network-scripts/ifcfg-eth0
> echo "NETMASK=255.255.255.0" > /etc/sysconfig/network-scripts/ifcfg-eth0
> echo "" > /etc/sysconfig/network-scripts/ifcfg-eth0
> echo "TYPE=Ethernet" > /etc/sysconfig/network-scripts/ifcfg-eth0
> echo "BOOTPROTO=static" > /etc/sysconfig/network-scripts/ifcfg-eth0
> echo "ONBOOT=yes" > /etc/sysconfig/network-scripts/ifcfg-eth0
> echo "NM_CONTROLLED=no" > /etc/sysconfig/network-scripts/ifcfg-eth0
> echo "USERCTL=no" > /etc/sysconfig/network-scripts/ifcfg-eth0
> echo "IPV6INIT=no" > /etc/sysconfig/network-scripts/ifcfg-eth0
> echo "IPV6_AUTOCONF=no" > /etc/sysconfig/network-scripts/ifcfg-eth0
> /etc/init.d/network start
vi was available tought. But: tried it. Doesn't work. I have now:
DEVICE="p3p1"
TYPE=Ethernet
BOOTPROTO=dhcp
HWADDR=""
ONBOOT="yes"
USERCTL="no"
NM_CONTROLLED="no"
After booting:
root at tola ~# ifconfig
lo Link encap:Local loopback
...
No interface p3p1.
I tried with "HWADDR" set to the devices HWAddr as with the whole
thing removed. No success. Network does only come up after login and
typing "ifup p3p1".
--
Thomas
More information about the users
mailing list