Tuesday, November 14, 2017

Configuring CentOS

Below commands would be useful while configuring broadhop:
   
  Edit interface IP address ==> vi /etc/sysconfig/network-scripts/ifcfg-eth0
   
  Restart NIC ==> service network restart
   
  Replace default route ==> ip route replace default via 10.104.99.1 dev eth0
   
  Bring down an interface ==> ifdown eth0
   
  Bring UP an interface ==> ifup eth0
   
  Add persistent routes by editing the file @ /etc/sysconfig/network-scripts/route-eth0 and the do "service network restart"
   

  View routing table ==> route -n

No comments:

Post a Comment