A comprehensive comparison of networking commands for Cisco devices and Linux systems
| Basic Device Navigation | ||
| Task | Cisco Command | Linux Command |
|---|---|---|
| Enter privileged mode |
enable
Enter privileged EXEC mode
|
sudo -i
Gain root privileges
|
| View current configuration |
show running-config
Display current active configuration
|
ip addr show
Display network interface configuration
|
| View system information |
show version
Display hardware and software info
|
uname -a
Display system information
|
| Interface Configuration | ||
| Task | Cisco Command | Linux Command |
| Select interface |
interface gigabitethernet 0/1
Enter interface configuration mode
|
ip link set eth0
Work with specific interface
|
| Assign IP address |
ip address 192.168.1.1 255.255.255.0
Assign IP to interface
|
ip addr add 192.168.1.10/24 dev eth0
Assign IP to interface
|
| Enable interface |
no shutdown
Bring interface up
|
ip link set eth0 up
Bring interface up
|
| Monitoring & Troubleshooting | ||
| Task | Cisco Command | Linux Command |
| Test connectivity |
ping 192.168.1.10
Test network connectivity
|
ping 192.168.1.1
Test network connectivity
|
| Trace network path |
traceroute google.com
Trace route to destination
|
traceroute google.com
Trace route to destination
|
| View interface status |
show ip interface brief
Show interface status summary
|
ip link show
Show interface status
|
| Routing Configuration | ||
| Task | Cisco Command | Linux Command |
| View routing table |
show ip route
Display routing table
|
ip route show
Display routing table
|
| Add static route |
ip route 10.0.0.0 255.0.0.0 192.168.1.1
Add static route
|
ip route add 10.0.0.0/8 via 192.168.1.1
Add static route
|
| Show ARP table |
show arp
Display ARP table
|
ip neigh show
Display neighbor/ARP table
|
Use these strategies to master network commands:
man ip)