CISCO Router Commands: Difference between revisions
From KlavoWiki
Jump to navigationJump to search
Line 20: | Line 20: | ||
configure terminal | configure terminal | ||
! | ! | ||
interface FastEthernet 0/0 | |||
interface | |||
no shutdown | no shutdown | ||
! | ! | ||
interface | interface FastEthernet 0/0.10 | ||
encapsulation dot1Q 10 | encapsulation dot1Q 10 | ||
ip address 192.168.1.254 255.255.255.0 | ip address 192.168.1.254 255.255.255.0 | ||
! | ! | ||
interface | interface FastEthernet 0/0.20 | ||
encapsulation dot1Q 20 | encapsulation dot1Q 20 | ||
ip address 192.168.2.254 255.255.255.0 | ip address 192.168.2.254 255.255.255.0 | ||
! | ! | ||
interface | interface FastEthernet 0/0.30 | ||
encapsulation dot1Q 30 | encapsulation dot1Q 30 | ||
ip address 192.168.3.254 255.255.255.0 | ip address 192.168.3.254 255.255.255.0 | ||
Line 47: | Line 37: | ||
exit | exit | ||
</pre> | </pre> | ||
== Loopback == | == Loopback == |
Revision as of 00:51, 12 February 2017
IP Settings
enable configure terminal ! interface fa0/0 ip address 192.168.1.200 255.255.255.0 no shutdown exit ! interface fa1/0 ip address 172.16.1.254 255.255.255.0 no shutdown exit
Multiple VLAN/IP
enable configure terminal ! interface FastEthernet 0/0 no shutdown ! interface FastEthernet 0/0.10 encapsulation dot1Q 10 ip address 192.168.1.254 255.255.255.0 ! interface FastEthernet 0/0.20 encapsulation dot1Q 20 ip address 192.168.2.254 255.255.255.0 ! interface FastEthernet 0/0.30 encapsulation dot1Q 30 ip address 192.168.3.254 255.255.255.0 ! exit
Loopback
enable configure terminal ! interface loopback 1 ip address 172.16.0.254 255.255.255.252 exit
Routes
Default
enable configure terminal ! ip route 0.0.0.0 0.0.0.0 FastEthernet 0/0
Static
enable configure terminal ! ip route 192.168.22.0 255.255.255.0 FastEthernet 0/0 20 ip route 172.30.11.0 255.255.255.0 FastEthernet 0/3 10