Configure a network interface with ifconfig

May eventually need to configure a network interface in a very quick but not permanently.To do so can use the ifconfig command as follows:

ifconfig eth0 192.168.10.200 netmask 255.255.255.0

If you do not know what is the interface or if you want to check if the configuration iscorrect, they can simply run ifconfig.

After configuring the IP is to configure the gateway (gateway). In this case we will do isadd a route to route network packets to the gateway:

route add default gw 192.168.10.254

0

0 comentários:

Etiquetas

Seguidores

Popular Posts

Free Website Hosting