Top Ad unit 728 × 90

Latest updates

recent

LINUX NETWORK ADMINISTRATION INTRODUCTION





(CENTOS7 OR RHEL7) NETWORK INTRODUCTION


#### TO CHECK THE IP ADDRESS ####
# ifconfig (to check the ip)


### TO CHANGE THE IP ADDRESS IN TEMPORARY BASIS ###
# ifconfig enp1s6 192.168.0.123
# ifconfig (to check)


### TO CHANGE THE IP ADDRESS IN PERMANENT BASIS ###
# nmtui (run this is command to access tool)
Select-->Edit a Connection---Edit
IPv4 Configuration-->Select-->Manual-->Show
Addresses : 192.168.0.200/24
Gateway : 192.168.0.254
DNS Server: 192.168.0.253
--->OK--->Quit
# service network restart
# ifconfig (to check the static ip)
# route -nv (to check gateway)
# cat /etc/resolv.conf (to check dns ip)


### TO ASSIGN THE VIRTUAL IP IN TEMPORARY BASIS ###
# ifconfig enp1s6:1 192.168.1.1
# ifconfig (to check)


### TO ASSIGN THE VIRTUAL IP IN PERMANENT BASIS ###'
# nmtui
Select-->Edit a Connection-->Add-->Ethernet
Profile Name: enp1s6:1
Device : enp1s6:1
IPv4 Configuration-->Select-->Manual-->Show
Addresses : 192.168.1.50/24
--->OK--->Quit
# service NetworkManager stop (stop this service)
# service network restart
# ifup enp1s6:1 (to enable virtual lan card)
# ifconfig (to check)
# service NetworkManager restart
(start this service to access nmtui tool)


'### TO REMOVE VIRTUAL IP ###'
# cd /etc/sysconfig/network-scripts (access location)
# ls (to check)
# rm ifcfg-enp1s6:1 (remove this file)
# service network restart
# ifconfig (to check)


'### TO DISABLE THE LAN CARD ###'
# ifdown enp1s6
# ifconfig (to check)


'### TO ENABLE THE LAN CARD ###'
# ifup enp1s6
# ifconfig (to check)


'### TO CHECK THE LINK ON THE LAN CARD ###'

# ethtool enp1s6
LINUX NETWORK ADMINISTRATION INTRODUCTION Reviewed by Unknown on 12:47 PM Rating: 5
© 2007 - 2016. All Rights Reserved by Babashaheer Blog

Contact Form

Name

Email *

Message *

Powered by Blogger.