Network Config Via Text Console

Janina Sajka janina at rednote.net
Mon Oct 8 11:53:26 EDT 2007


Daniel C writes:
> Hi list,
>  
> Does anyone know how to configure network settings via the text console of
> Fedora7?

Sure.

The configurations live in /etc, /etc/sysconfig and
/etc/sysconfig/network-scripts. You want to learn several commands such
as:

service network restart

ifup

ifdown

ifconfig [device] [address] netmask [netmask]

Example:

ifconfig eth0 192.168.1.100 netmask 255.255.255.0

And, you want to learn the route command, ex:

route add default gw 192.168.1.1 eth0

If using dhcp, you want to do something like:

dhclient eth0

Janina




More information about the Speakup mailing list