sábado, 6 de mayo de 2023

Basic network configuration ip command

 

Layer 3: Configuration

Use one of the following commands to manually set a network (Layer 3) address:
# ip addr add 10.0.2.25/255.255.255.0 dev eth0

Use one of the following commands to manually set or change the default route:
# ip route add default via 10.0.2.2
# route add default gw 10.0.2.2

To add the address of a DNS server, use the following command:
$ echo "nameserver 4.2.2.1" >> /etc/resolv.conf

To manually request a DHCP configuration, use the dhclient command:
# dhclient eth0

No hay comentarios:

Publicar un comentario