Escolar Documentos
Profissional Documentos
Cultura Documentos
-config trunk
config-int# switchport mode trunk
-if you get an error, do this first
config-if# switchport trunk encapap dot1q
- to setup vlan
config# vlan 1
config-vlan# name sales
add port to vlan
config-if# switchport mode access
config-if# switchport access vlan 1
-vlan database stored in VLAN.DAT
sh commands
sh vlan
VTP
ROUTING
OSPF
-to enable:
config# router ospf 1
-then enter the network to advertise followed by the area
config-router# network 192.168.1.0 0.0.0.255 area 0
-to send the default route to others
config-router# default-information originate
-ospf router ID is the highest physical interface (largest IP). Loopback
beats physical. Router ID beats all. Must reload ospf to take effect
config# router ospf 1
config-router# router-id 3.3.3.3
#clear ip ospf process
-show commands
sh ip ospf 1
sh ip route
sh ip protocol
sh ip ospf neighbor
debug ip ospf adj
EIG RP
-to enable:
config# router eigrp 1
config-router# network 192.168.1.0 0.0.0.255
-show commands
sh ip route
sh ip eigrp 1
sh ip eigrp neighbor
NAT
-to enable - first label interfaces
config# int e0/0
config-if# ip nat inside
-then create lists
config#ip access-list standard NAT_ADDRESSES
config#deny 10.1.1.10 0.0.0.0
config#permit 10.1.1.1 0.0.0.255
-turn on NAT overload
config#ip nat inside source list NAT_ADDRESSES interface e0/1
overload
-you must have a permit statememt, or you will block everything
-to create a pool (first address, then last address, followed by cider
notation)
config# ip nat pool PUBLIC_ADD 10.0.0.1 10.0.0.5 24
-to setup static mapping
config# ip nat inside source static tcp 192.168.10.50 80 interface
e0/1 80
sh commands
sh ip nat translations
PPP
-default is encapsulation HDLC. you must change to PPP
config# int s0/1/0
config-if# encapsulation ppp
-to have passwords
config# enable password cisco1
config# service password encryption
sh commands
sh interfaces serial 0/0
FRAME RELAY