CentOS 7.x ip command
From Notes_Wiki
<yambe:breadcrumb>CentOS_7.x_network_management|CentOS 7.x network management</yambe:breadcrumb>
CentOS 7.x ip command
Add static IP to IPv4 interface using ip command
In CentOS 7.x multiple IPv4 addresses can be associated with same interface without needing aliases (eth0:0). The older ifconfig command will show only one of these multiple addresses.
Hence use following command to check interface ip addresses:
ip addr show
Add IP to interface using:
ip address add 10.90.144.251/21 dev enp0s25
Similarly existing IP can be removed using
ip add del 10.0.0.0/21 dev enp0s25
<yambe:breadcrumb>CentOS_7.x_network_management|CentOS 7.x network management</yambe:breadcrumb>