Network Commands in Linux

  • #ifconfig -> Details of the Network Intefaces and Ip and SubnetMask
  • #Netstat -> Details of the Network status Line open ports , Established ports , Gateway and …
  • #ip a -> This command is like ifconfig but run in CentOS 7
  • #iptables -> Details of firewall rules
  • #route -> Details of Gateway and routes

You can see many examples like the followings :

  • #route -n
  • #netstat -l
  • #ifconfig -a
  • #ifconfig eth0 192.168.1.2/24
  • #iptables -L
  • #iptables -A INPUT -p tcp –dport 80 -j ACCEPT
  • #ifconfig eth0 down

to be continued

Iman Tavakoli

Leave a Reply

Your email address will not be published. Required fields are marked *