Mijn vraag
Hey Iedereen! Ik heb een opdracht die er aan komt en wou kijken of dit het beste manier is om dit op te pakken en te testen
enable
configure terminal
hostname Core01_ARN
no ip domain-lookup
vlan 30
name Productie
vlan 40
name Marketing
vlan 50
name Gasten_WIFI
exit
interface vlan 30
ip address 10.10.30.1 255.255.255.0
no shutdown
exit
interface vlan 40
ip address 10.10.40.1 255.255.255.0
no shutdown
exit
interface vlan 50
ip address 10.10.50.1 255.255.255.0
no shutdown
exit
interface vlan 1
ip address 10.10.0.2 255.255.255.0
no shutdown
exit
vtp domain SOLAR
vtp mode server
vtp password solar
interface range fa0/1 , fa0/3 , fa0/24
switchport mode trunk
switchport trunk allowed vlan all
spanning-tree vlan 1,30,40,50 priority 4096
ip dhcp excluded-address 10.10.30.1 10.10.30.50
ip dhcp excluded-address 10.10.40.1 10.10.40.50
ip dhcp excluded-address 10.10.50.1 10.10.50.50
ip dhcp pool vlan30
network 10.10.30.0 255.255.255.0
default-router 10.10.30.1
dns-server 62.36.55.85
exit
ip dhcp pool vlan40
network 10.10.40.0 255.255.255.0
default-router 10.10.40.1
dns-server 62.36.55.85
exit
ip dhcp pool vlan50
network 10.10.50.0 255.255.255.0
default-router 10.10.50.1
dns-server 62.36.55.85
exit
ip routing
router ospf 1
network 10.0.0.0 0.255.255.255 area 0
access-list 150 deny ip 10.10.50.0 0.0.0.255 10.10.30.0 0.0.0.255
access-list 150 deny ip 10.10.50.0 0.0.0.255 10.10.40.0 0.0.0.255
access-list 150 deny ip 10.10.50.0 0.0.0.255 172.16.10.0 0.0.0.255
access-list 150 deny ip 10.10.50.0 0.0.0.255 172.16.5.0 0.0.0.255
access-list 150 deny ip 10.10.50.0 0.0.0.255 172.16.20.0 0.0.0.255
access-list 150 permit ip any any
arn
enable
configure terminal
hostname SW01_ARN
no ip domain-lookup
vtp domain SOLAR
vtp mode client
vtp password solar
interface range fa0/4 - 5
switchport mode access
switchport access vlan 30
interface fa0/1
switchport mode trunk
switchport trunk allowed vlan all
arn2
enable
configure terminal
hostname SW02_ARN
no ip domain-lookup
vtp domain SOLAR
vtp mode client
vtp password solar
interface fa0/4
switchport mode access
switchport access vlan 40
interface fa0/1
switchport mode access
switchport access vlan 40
interface fa0/3
switchport mode trunk
switchport trunk allowed vlan all
Notes
ssh -l Admin ip address
show startup-config
show running-config
write
show ip interface brief
show ip route
show arp / show ip arp
show vlan brief
show interface trunk
show lldp neighbors
show lldp neighbors detail
show cdp neighbors
show version
show log
show history
show interfaces
Om te checken of Telnet aanstaat kan ik zien via
show running-config en dan kijken voor
line vty 0 4
transport input ssh Dan staat hij uit
Om hem uit te zetten
enable
configure terminal
line vty 0 4
transport input ssh
line vty 5 15
transport input ssh
end
write memory
Voor wachtwoord versleuteling te checken
show running-config
Zoeken naar service password-encryption
en anders
configure terminal
service password-encryption
end
write memory
En om te checken voor SSH remote login
show running-config
zoeken voor
line vty 0 4
login local
transport input ssh
line vty 5 15
login
transport input ssh
Fix als het niet goed staat
configure terminal
line vty 0 4
transport input ssh
line vty 5 15
transport input ssh
end
write memory
NTP Server is geconfigureerd
show running-config
Dit moet ik zien
ntp server 10.30.0.100
show ntp status (Om double checken)
Clock is synchronized (Als dit niet goed staat is NTP wel ingesteld maar werkt niet)
Om het aan te zetten
configure terminal
ntp server 10.30.0.100
end
Syslog server is geconfigureerd
show running-config
logging 10.30.0.100
logging 172.30.0.100
logging trap debugging
als het werkt en anders
show logging
Als ik dit ziet is het zeker goed
Logging to 10.30.0.100
En voor de versie
show version
netwerk snelheid checken
show interfaces
Full-duplex (Snelheid)
Hey Iedereen! Ik heb een opdracht die er aan komt en wou kijken of dit het beste manier is om dit op te pakken en te testen
enable
configure terminal
hostname Core01_ARN
no ip domain-lookup
vlan 30
name Productie
vlan 40
name Marketing
vlan 50
name Gasten_WIFI
exit
interface vlan 30
ip address 10.10.30.1 255.255.255.0
no shutdown
exit
interface vlan 40
ip address 10.10.40.1 255.255.255.0
no shutdown
exit
interface vlan 50
ip address 10.10.50.1 255.255.255.0
no shutdown
exit
interface vlan 1
ip address 10.10.0.2 255.255.255.0
no shutdown
exit
vtp domain SOLAR
vtp mode server
vtp password solar
interface range fa0/1 , fa0/3 , fa0/24
switchport mode trunk
switchport trunk allowed vlan all
spanning-tree vlan 1,30,40,50 priority 4096
ip dhcp excluded-address 10.10.30.1 10.10.30.50
ip dhcp excluded-address 10.10.40.1 10.10.40.50
ip dhcp excluded-address 10.10.50.1 10.10.50.50
ip dhcp pool vlan30
network 10.10.30.0 255.255.255.0
default-router 10.10.30.1
dns-server 62.36.55.85
exit
ip dhcp pool vlan40
network 10.10.40.0 255.255.255.0
default-router 10.10.40.1
dns-server 62.36.55.85
exit
ip dhcp pool vlan50
network 10.10.50.0 255.255.255.0
default-router 10.10.50.1
dns-server 62.36.55.85
exit
ip routing
router ospf 1
network 10.0.0.0 0.255.255.255 area 0
access-list 150 deny ip 10.10.50.0 0.0.0.255 10.10.30.0 0.0.0.255
access-list 150 deny ip 10.10.50.0 0.0.0.255 10.10.40.0 0.0.0.255
access-list 150 deny ip 10.10.50.0 0.0.0.255 172.16.10.0 0.0.0.255
access-list 150 deny ip 10.10.50.0 0.0.0.255 172.16.5.0 0.0.0.255
access-list 150 deny ip 10.10.50.0 0.0.0.255 172.16.20.0 0.0.0.255
access-list 150 permit ip any any
arn
enable
configure terminal
hostname SW01_ARN
no ip domain-lookup
vtp domain SOLAR
vtp mode client
vtp password solar
interface range fa0/4 - 5
switchport mode access
switchport access vlan 30
interface fa0/1
switchport mode trunk
switchport trunk allowed vlan all
arn2
enable
configure terminal
hostname SW02_ARN
no ip domain-lookup
vtp domain SOLAR
vtp mode client
vtp password solar
interface fa0/4
switchport mode access
switchport access vlan 40
interface fa0/1
switchport mode access
switchport access vlan 40
interface fa0/3
switchport mode trunk
switchport trunk allowed vlan all
Notes
ssh -l Admin ip address
show startup-config
show running-config
write
show ip interface brief
show ip route
show arp / show ip arp
show vlan brief
show interface trunk
show lldp neighbors
show lldp neighbors detail
show cdp neighbors
show version
show log
show history
show interfaces
Om te checken of Telnet aanstaat kan ik zien via
show running-config en dan kijken voor
line vty 0 4
transport input ssh Dan staat hij uit
Om hem uit te zetten
enable
configure terminal
line vty 0 4
transport input ssh
line vty 5 15
transport input ssh
end
write memory
Voor wachtwoord versleuteling te checken
show running-config
Zoeken naar service password-encryption
en anders
configure terminal
service password-encryption
end
write memory
En om te checken voor SSH remote login
show running-config
zoeken voor
line vty 0 4
login local
transport input ssh
line vty 5 15
login
transport input ssh
Fix als het niet goed staat
configure terminal
line vty 0 4
transport input ssh
line vty 5 15
transport input ssh
end
write memory
NTP Server is geconfigureerd
show running-config
Dit moet ik zien
ntp server 10.30.0.100
show ntp status (Om double checken)
Clock is synchronized (Als dit niet goed staat is NTP wel ingesteld maar werkt niet)
Om het aan te zetten
configure terminal
ntp server 10.30.0.100
end
Syslog server is geconfigureerd
show running-config
logging 10.30.0.100
logging 172.30.0.100
logging trap debugging
als het werkt en anders
show logging
Als ik dit ziet is het zeker goed
Logging to 10.30.0.100
En voor de versie
show version
netwerk snelheid checken
show interfaces
Full-duplex (Snelheid)