Common Linux Network Configuration Commands and Examples

Common Linux Network Configuration Commands and Examples

1. Network Interfaces 1.1 Configuring IP Address yum install net-tools # Use ifconfig ifconfig eth0 192.168.1.3 netmask 255.255.255.0 # Add ipv6 address ifconfig eth1 add 240e:981:f200::100/64 # Add network card alias ifconfig eth0:0 192.168.1.10 # Use ip command to add/remove an IP ip addr add 192.168.1.4/24 dev eth0 ip addr del 192.168.1.4/24 dev eth0 The … Read more