Purpose
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.
Audience
All users experienced with CentOS basic command lines.
Steps
- Check Ethernet ports
# ip a
- Add IP and netmask
# ip addr add ip/netmask dev device_name
E.g
# 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
Comments
0 comments
Please sign in to leave a comment.