CentOS 7.x ip command

From Notes_Wiki
Revision as of 12:30, 14 October 2017 by Saurabh (talk | contribs) (Created page with "<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==...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

<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>