Difference between revisions of "AMU HAMMR"
From Teknologisk videncenter
								
												
				| m (→Subnetting) | m (→Del 1 uden Trunking) | ||
| Line 35: | Line 35: | ||
| access-list 1 permit 172.16.0.0 0.0.0.255 | access-list 1 permit 172.16.0.0 0.0.0.255 | ||
| ! | ! | ||
| + | </source> | ||
| + | === Del 1 uden Trunking === | ||
| + | ====Router==== | ||
| + | <source lang=bash> | ||
| + | hostname SOHO | ||
| + | ! | ||
| + | ip dhcp pool STUDENTS | ||
| + |  import all | ||
| + |  network 172.16.0.0 255.255.255.0 | ||
| + |  default-router 172.16.0.1 | ||
| + | ! | ||
| + | ip dhcp pool TEACHER | ||
| + |  import all | ||
| + |  network 172.16.1.0 255.255.255.0 | ||
| + |  default-router 172.16.1.1 | ||
| + | ! | ||
| + | interface GigabitEthernet0/0 | ||
| + |  description Outside | ||
| + |  ip address dhcp | ||
| + |  ip nat outside | ||
| + | ! | ||
| + | interface GigabitEthernet0/1 | ||
| + |  description Inside | ||
| + |  no ip address | ||
| + | ! | ||
| + | interface GigabitEthernet0/1.10 | ||
| + |  encapsulation dot1Q 10 | ||
| + |  ip address 172.16.0.1 255.255.255.0 | ||
| + |  ip nat inside | ||
| + | ! | ||
| + | interface GigabitEthernet0/1.20 | ||
| + |  encapsulation dot1Q 20 | ||
| + |  ip address 172.16.1.1 255.255.255.0 | ||
| + |  ip nat inside | ||
| + | ! | ||
| + | ip nat inside source list 1 interface GigabitEthernet0/0 overload | ||
| + | ! | ||
| + | access-list 1 permit 172.16.0.0 0.0.0.255 | ||
| + | access-list 1 permit 172.16.1.0 0.0.0.255 | ||
| + | </source> | ||
| + | ====Lag 2 switch=== | ||
| + | <source lang=bash> | ||
| + | hostname Switch | ||
| + | |||
| + | interface FastEthernet0/1 | ||
| + |  switchport mode trunk | ||
| + | ! | ||
| + | interface range FastEthernet0/5 - 9 | ||
| + |  switchport access vlan 10 | ||
| + |  switchport mode access | ||
| + | ! | ||
| + | interface range FastEthernet0/11 - 19 | ||
| + |  switchport access vlan 20 | ||
| + |  switchport mode access | ||
| </source> | </source> | ||
Revision as of 12:12, 1 September 2025
Contents
Materialer anvendt
Uge 1
Subnetting
File:23.1 - SUBNET eksempel.pdf
Router øvelse med nat
Del 1 uden Trunking
hostname SOHO
!
ip dhcp pool STUDENTS
 import all
 network 172.16.0.0 255.255.255.0
 default-router 172.16.1.1
!
interface GigabitEthernet0/0
 description Outside
 ip address dhcp
 ip nat outside
!
interface GigabitEthernet0/1
 description Inside
 ip address 172.16.0.1 255.255.255.0
 ip nat inside
!
ip nat inside source list 1 interface GigabitEthernet0/0 overload
!
access-list 1 permit 172.16.0.0 0.0.0.255
!
Del 1 uden Trunking
Router
hostname SOHO
!
ip dhcp pool STUDENTS
 import all
 network 172.16.0.0 255.255.255.0
 default-router 172.16.0.1
!
ip dhcp pool TEACHER
 import all
 network 172.16.1.0 255.255.255.0
 default-router 172.16.1.1
!
interface GigabitEthernet0/0
 description Outside
 ip address dhcp
 ip nat outside
!
interface GigabitEthernet0/1
 description Inside
 no ip address
!
interface GigabitEthernet0/1.10
 encapsulation dot1Q 10
 ip address 172.16.0.1 255.255.255.0
 ip nat inside
!
interface GigabitEthernet0/1.20
 encapsulation dot1Q 20
 ip address 172.16.1.1 255.255.255.0
 ip nat inside
!
ip nat inside source list 1 interface GigabitEthernet0/0 overload
!
access-list 1 permit 172.16.0.0 0.0.0.255
access-list 1 permit 172.16.1.0 0.0.0.255
=Lag 2 switch
hostname Switch
interface FastEthernet0/1
 switchport mode trunk
!
interface range FastEthernet0/5 - 9
 switchport access vlan 10
 switchport mode access
!
interface range FastEthernet0/11 - 19
 switchport access vlan 20
 switchport mode access
Links
- Link til Cisco Netacad
- ASC II - Koder for bogstaver og tal
- Putty et gratis terminal emuleringssoftware
- Introduction to networks
- Fiber kabel lægning med skibet Resolute
