The commands "ifconfig" and "route" are not included into Centos 7 as default. The commands are changed to "ip". This article shows how to use "ip" commands to set up Ethernet.
All users experienced with CentOS basic command lines.
- Check Ethernet ports
# ip a
- Add IP and netmask
# ip addr add ip/netmask dev device_name
# ip addr add 192.168.1.100/24 dev b00p0
- DEL IP and netmask
# ip addr del ip/netmask dev device_name
- Set up default gateway
# ip route add default via gateway_ip
Please sign in to leave a comment.