|
楼主 |
发表于 2021-8-4 00:50:47
|
显示全部楼层
这是我的配置:
R1
12.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C 12.1.1.0/24 is directly connected, Ethernet0/2
L 12.1.1.1/32 is directly connected, Ethernet0/2
13.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C 13.1.1.0/24 is directly connected, Ethernet0/0
L 13.1.1.1/32 is directly connected, Ethernet0/0
22.0.0.0/24 is subnetted, 1 subnets
O 22.1.1.0 [110/20] via 12.1.1.2, 00:25:24, Ethernet0/2
23.0.0.0/24 is subnetted, 1 subnets
O 23.1.1.0 [110/20] via 13.1.1.2, 00:21:47, Ethernet0/0
192.168.10.0/24 is variably subnetted, 2 subnets, 2 masks
C 192.168.10.0/24 is directly connected, Ethernet0/1.10
L 192.168.10.254/32 is directly connected, Ethernet0/1.10
192.168.20.0/24 is variably subnetted, 2 subnets, 2 masks
C 192.168.20.0/24 is directly connected, Ethernet0/1.20
L 192.168.20.254/32 is directly connected, Ethernet0/1.20
192.168.30.0/24 is variably subnetted, 2 subnets, 2 masks
C 192.168.30.0/24 is directly connected, Ethernet0/1.30
L 192.168.30.254/32 is directly connected, Ethernet0/1.30
192.168.40.0/24 is variably subnetted, 2 subnets, 2 masks
C 192.168.40.0/24 is directly connected, Ethernet0/1.40
L 192.168.40.254/32 is directly connected, Ethernet0/1.40
192.168.50.0/24 is variably subnetted, 2 subnets, 2 masks
C 192.168.50.0/24 is directly connected, Ethernet0/1.50
L 192.168.50.254/32 is directly connected, Ethernet0/1.50
192.168.100.0/24 is variably subnetted, 2 subnets, 2 masks
C 192.168.100.0/24 is directly connected, Ethernet0/1.100
L 192.168.100.254/32 is directly connected, Ethernet0/1.100
router ospf 10
network 12.1.1.0 0.0.0.255 area 0
network 13.1.1.0 0.0.0.255 area 0
network 22.1.1.0 0.0.0.255 area 0
network 23.1.1.0 0.0.0.255 area 0
network 192.168.10.0 0.0.0.255 area 0
network 192.168.20.0 0.0.0.255 area 0
network 192.168.30.0 0.0.0.255 area 0
network 192.168.40.0 0.0.0.255 area 0
network 192.168.50.0 0.0.0.255 area 0
network 192.168.100.0 0.0.0.255 area 0
R1 (配置)
interface Ethernet0/0
no switchport
ip address 13.1.1.1 255.255.255.0
!
interface Ethernet0/1
no switchport
no ip address
!
interface Ethernet0/1.10
encapsulation dot1Q 10
ip address 192.168.10.254 255.255.255.0
ip helper-address 192.168.50.1
!
interface Ethernet0/1.20
encapsulation dot1Q 20
ip address 192.168.20.254 255.255.255.0
ip helper-address 192.168.50.1
!
interface Ethernet0/1.30
encapsulation dot1Q 30
ip address 192.168.30.254 255.255.255.0
!
interface Ethernet0/1.40
encapsulation dot1Q 40
ip address 192.168.40.254 255.255.255.0
!
interface Ethernet0/1.50
encapsulation dot1Q 50
ip address 192.168.50.254 255.255.255.0
!
interface Ethernet0/1.100
encapsulation dot1Q 100
ip address 192.168.100.254 255.255.255.0
!
interface Ethernet0/2
no switchport
ip address 12.1.1.1 255.255.255.0
| R2
S* 0.0.0.0/0 [1/0] via 192.168.100.254
12.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C 12.1.1.0/24 is directly connected, Ethernet0/2
L 12.1.1.2/32 is directly connected, Ethernet0/2
13.0.0.0/24 is subnetted, 1 subnets
O 13.1.1.0 [110/20] via 12.1.1.1, 00:31:51, Ethernet0/2
22.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C 22.1.1.0/24 is directly connected, Ethernet0/1
L 22.1.1.2/32 is directly connected, Ethernet0/1
23.0.0.0/24 is subnetted, 1 subnets
O 23.1.1.0 [110/20] via 22.1.1.1, 00:29:32, Ethernet0/1
O 192.168.10.0/24 [110/20] via 12.1.1.1, 00:31:51, Ethernet0/2
O 192.168.20.0/24 [110/20] via 12.1.1.1, 00:31:51, Ethernet0/2
O 192.168.30.0/24 [110/20] via 12.1.1.1, 00:31:51, Ethernet0/2
O 192.168.40.0/24 [110/20] via 12.1.1.1, 00:31:51, Ethernet0/2
O 192.168.50.0/24 [110/20] via 12.1.1.1, 00:31:51, Ethernet0/2
192.168.100.0/24 is variably subnetted, 2 subnets, 2 masks
C 192.168.100.0/24 is directly connected, Ethernet0/0
L 192.168.100.2/32 is directly connected, Ethernet0/0 |
R2 (配置)
router ospf 10
network 12.1.1.0 0.0.0.255 area 0
network 13.1.1.0 0.0.0.255 area 0
network 22.1.1.0 0.0.0.255 area 0
network 23.1.1.0 0.0.0.255 area 0
network 192.168.30.0 0.0.0.255 area 0
network 192.168.40.0 0.0.0.255 area 0
network 192.168.100.0 0.0.0.255 area 0
!
ip forward-protocol nd
!
ip http server
!
ip route 0.0.0.0 0.0.0.0 192.168.100.254
interface Ethernet0/0
no switchport
ip address 192.168.100.2 255.255.255.0
!
interface Ethernet0/1
no switchport
ip address 22.1.1.2 255.255.255.0
!
interface Ethernet0/2
no switchport
ip address 12.1.1.2 255.255.255.0
R3
12.0.0.0/24 is subnetted, 1 subnets
O 12.1.1.0 [110/20] via 13.1.1.1, 00:33:27, Ethernet0/0
13.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C 13.1.1.0/24 is directly connected, Ethernet0/0
L 13.1.1.2/32 is directly connected, Ethernet0/0
22.0.0.0/24 is subnetted, 1 subnets
O 22.1.1.0 [110/20] via 23.1.1.2, 00:33:37, Ethernet0/1
23.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C 23.1.1.0/24 is directly connected, Ethernet0/1
L 23.1.1.1/32 is directly connected, Ethernet0/1
O 192.168.10.0/24 [110/20] via 13.1.1.1, 00:33:27, Ethernet0/0
O 192.168.20.0/24 [110/20] via 13.1.1.1, 00:33:27, Ethernet0/0
O 192.168.30.0/24 [110/20] via 13.1.1.1, 00:33:27, Ethernet0/0
O 192.168.40.0/24 [110/20] via 13.1.1.1, 00:33:27, Ethernet0/0
O 192.168.50.0/24 [110/20] via 13.1.1.1, 00:33:27, Ethernet0/0
O 192.168.100.0/24 [110/20] via 13.1.1.1, 00:28:44, Ethernet0/0
R3 (配置)
router ospf 10
network 12.1.1.0 0.0.0.255 area 0
network 13.1.1.0 0.0.0.255 area 0
network 22.1.1.0 0.0.0.255 area 0
network 23.1.1.0 0.0.0.255 area 0
!
interface Ethernet0/0
no switchport
ip address 13.1.1.2 255.255.255.0
!
interface Ethernet0/1
no switchport
ip address 23.1.1.1 255.255.255.0
| R4
12.0.0.0/24 is subnetted, 1 subnets
O 12.1.1.0 [110/20] via 22.1.1.2, 00:33:42, Ethernet0/0
13.0.0.0/24 is subnetted, 1 subnets
O 13.1.1.0 [110/20] via 23.1.1.1, 00:31:49, Ethernet0/1
22.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C 22.1.1.0/24 is directly connected, Ethernet0/0
L 22.1.1.1/32 is directly connected, Ethernet0/0
23.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C 23.1.1.0/24 is directly connected, Ethernet0/1
L 23.1.1.2/32 is directly connected, Ethernet0/1
O 192.168.10.0/24 [110/30] via 23.1.1.1, 00:31:49, Ethernet0/1
[110/30] via 22.1.1.2, 00:33:42, Ethernet0/0
O 192.168.20.0/24 [110/30] via 23.1.1.1, 00:31:49, Ethernet0/1
[110/30] via 22.1.1.2, 00:33:42, Ethernet0/0
O 192.168.30.0/24 [110/30] via 23.1.1.1, 00:31:49, Ethernet0/1
[110/30] via 22.1.1.2, 00:33:42, Ethernet0/0
O 192.168.40.0/24 [110/30] via 23.1.1.1, 00:31:49, Ethernet0/1
[110/30] via 22.1.1.2, 00:33:42, Ethernet0/0
O 192.168.50.0/24 [110/30] via 23.1.1.1, 00:31:49, Ethernet0/1
[110/30] via 22.1.1.2, 00:33:42, Ethernet0/0
O 192.168.100.0/24 [110/20] via 22.1.1.2, 00:33:42, Ethernet0/0 |
R4(配置)
router ospf 10
network 12.1.1.0 0.0.0.255 area 0
network 13.1.1.0 0.0.0.255 area 0
network 22.1.1.0 0.0.0.255 area 0
network 23.1.1.0 0.0.0.255 area 0
!
interface Ethernet0/0
no switchport
ip address 22.1.1.1 255.255.255.0
!
interface Ethernet0/1
no switchport
ip address 23.1.1.2 255.255.255.0
!
SW3
!
interface Vlan10
no ip address
!
interface Vlan20
no ip address
!
interface Vlan30
no ip address
!
interface Vlan40
no ip address
!
interface Vlan100
no ip address
!
interface GigabitEthernet0/0
switchport access vlan 100
switchport mode access
negotiation auto
!
interface GigabitEthernet0/1
switchport access vlan 40
switchport mode access
negotiation auto
!
interface GigabitEthernet0/2
switchport access vlan 30
switchport mode access
negotiation auto
!
| DHCP
!
no ip routing
!
ip dhcp excluded-address 192.168.10.254
ip dhcp excluded-address 192.168.20.254
ip dhcp excluded-address 192.168.30.254
ip dhcp excluded-address 192.168.40.254
ip dhcp excluded-address 192.168.100.254
!
ip dhcp pool vlan10
network 192.168.10.0 255.255.255.0
dns-server 114.114.114.114
default-router 192.168.10.254
!
ip dhcp pool vlan20
network 192.168.20.0 255.255.255.0
dns-server 114.114.114.114
default-router 192.168.20.254
!
ip dhcp pool vlan10PC8
!
ip dhcp pool vlan10pc8
host 192.168.10.100 255.255.255.0
client-identifier 0100.5079.6668.08
default-router 192.168.10.254
dns-server 114.114.114.114
!
ip dhcp pool vln10pc8
!
ip dhcp pool vlan20pc9
host 192.168.20.100 255.255.255.0
client-identifier 0100.5079.6668.09
default-router 192.168.20.254
dns-server 114.114.114.114
!
ip dhcp pool vlan30
network 192.168.30.0 255.255.255.0
default-router 192.168.30.254
dns-server 114.114.114.114
!
ip dhcp pool vlan40
network 192.168.40.0 255.255.255.0
default-router 192.168.40.254
dns-server 114.114.114.114
!
ip dhcp pool vlan100
network 192.168.100.0 255.255.255.0
default-router 192.168.100.254
dns-server 114.114.114.114
! |
|
地板
2021-8-4 00:50:47
回复(0)
收起回复
|