Netværk I ITH1 oktober 2013/VLAN

From Teknologisk videncenter
< Netværk I ITH1 oktober 2013
Revision as of 10:37, 17 October 2013 by Rael (talk | contribs) (Created page with "{| |800px|left|thumb|VLAN |} <source lang=cli> configure terminal ! ! Sætter hostname hostname SW1 ! ! Opretter VLAN vlan 10 name Data1 vlan 20 name Data2 v...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
VLAN
configure terminal
!
! Sætter hostname
hostname SW1
!
! Opretter VLAN
vlan 10
 name Data1
vlan 20
 name Data2
vlan 99
 name MGMT
!
! Tilføjer porte til vlan 10
interface range fastethernet 0/1 - 12
 switchport mode access
 switchport access vlan 10
 switchport nonegotiate
!
! Sætter management vlan
interface vlan 99
 ip address 192.168.99.10 255.255.255.0
 no shutdown
!
ip domain-name raelab.dk
!
crypto key generate rsa
!
username admin password cisco
!
line vty 0 15
 transport input ssh
 login local
!
end
!
copy run start