Router
From AlphaBook
Contents
Basic setup
- show ip route summary
Administrative Distance
Routing Protocol | AD |
Directly connected interface | 0 |
Static route | 1 |
OSPF | 110 |
RIP | 120 |
Static Route
- ip route 172.16.0.0 255.255.0.0 e0/0 192.168.12.2
- ip route 0.0.0.0 0.0.0.0 e0/0 192.168.12.2
- ip route 0.0.0.0 0.0.0.0 e0/1 192.168.13.3 10
OSPF (Open Shortest Path First)
- router ospf 1 // router ospf process-id
- interface fastEthernet 0/1
- ip ospf 1 area 0
- router ospf 1
- passive interface vlan 10
- interface vlan 10
- ip ospf 1 area 1
- show ip ospf interface brief
- show ip ospf neighbor
- show ip route ospf
NAT
- interface Ethernet0
- ip address 192.168.1.1 255.255.255.0
- ip nat inside
- interface Ethernet1
- ip address 211.120.200.2 255.255.255.0
- ip nat outside
- ip nat inside static 192.168.1.100 211.120.200.100