You are on page 1of 2

( Vargas Router )

Hostname og Passwords:
config t
hostname Vargas
enable secret cisco
line console 0
password cisco
login
exec-timeout 0 0
line vty 0 4
password cisco
login
exit

Default Route
interface serial 0/3/0
ip address 172.16.100.2 255.255.255.252
no shutdown

Bandwidth:
interface serial 0/3/0
bandwidth 64
clock rate 64000

OSPF:
router ospf 1
ospf router-id 10.10.10.2
network 172.16.1.0 0.0.0.255 area 0
network 172.16.10.0 0.0.0.255 area 0
network 172.16.20.0 0.0.0.255 area 0
network 172.16.100.0 0.0.0.3 area 0
log-adjacency-changes
exit
exit

Authentication:
interface serial 0/3/0
ip ospf message-digest-key 1 md5 8
router ospf 1
area 0 authentication message-digest

Loopback:
interface Loopback 0
ip address 10.10.10.2 255.255.255.255
exit

VLAN trunk:
interface fa0/0
no ip address
no shutdown
interface fa0/0.1
encapsulation dot1q 1
ip address 172.16.1.1 255.255.255.0
interface fa0/0.10
encapsulation dot1q 10
ip address 172.16.10.1 255.255.255.0
interface fa0/0.20
encapsulation dot1q 20
ip address 172.16.20.1 255.255.255.0
( Switch 1 )
Hostname og Password:
config t
hostname Switch1
enable secret cisco
line console 0
password cisco
login
exec-timeout 0 0
line vty 0 15
password cisco
login

Access til switch:


interface vlan 1
ip address 172.16.1.3 255.255.255.0
no shutdown
exit
ip default-gateway 172.16.1.1

Navngiv VLANs:
Vlan database “mode”
vtp domain group1
vtp server
vlan 10 name Faculty
vlan 20 name Student
exit

Trunking på fa0/1:
interface fa0/1
switchport trunk encapsulation dot1q
switchport mode trunk
exit

Opret VLANs på Ports:


interface fa0/5
switchport mode access
switchport access vlan 10
switchport port-security
switchport port-security maximum 1
switchport port-security violation shutdown

interface fa0/6
switchport mode access
switchport access vlan 10
switchport port-security
switchport port-security maximum 1
switchport port-security violation shutdown

interface fa0/7
switchport mode access
switchport access vlan 20
switchport port-security
switchport port-security maximum 1
switchport port-security violation shutdown

interface fa0/8
switchport mode access
switchport access vlan 20
switchport port-security
switchport port-security maximum 1
switchport port-security violation shutdown Åben access Ports:
Interface range fa0/2 - 24
Vis Port sikkerhed: Switchport mode access
show port-security no shutdown

You might also like