实验内网无法获取请求前辈给予排错思路!
本帖最后由 wgzwgz 于 2021-8-23 00:12 编辑实验要求:
实验需求:
1.SW1 SW2 二层 SW3 三层
2.PC配置DHCP获取固定IP、PC3不能pingPC4但PC4可以pingPC3,其他都可以通
3.R1 单臂 R2 R3 SW3 GW OSPF 进程10 区域0 vlan都能通。
4.GW配置DHCP给PC分配 、NAT在vlan10和30访问internet 、vlan20和40 不能访问internet
5.telnet 服务器映射23端口到internet的100.1.1.1:10000.在internet上通过命令 telnet 100.1.1.1:10000来远程telnet服务器
目前遇到的问题:
我的PC6和PC7 无法获取到DHCP固定IP分配,我在R2已经做路由协议 OSPF和静态宣告 192.168.50.254 查看路由表是有学习到的。
但SW3三层交换我尝试静态和宣告中继模式都无法Ping通过DHCP下发的地址池~请前辈给予我排错和配置思路学习,谢谢大佬。
以下是我的配置请前辈查验:
R2(配置)
interface Ethernet0/0
switchport access vlan 100
switchport trunk encapsulation dot1q
switchport mode access
!
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
!
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 route 0.0.0.0 0.0.0.0 192.168.50.254
R2 路由表
S* 0.0.0.0/0 via 192.168.50.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 via 12.1.1.1, 00:00:03, 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
O 192.168.10.0/24 via 12.1.1.1, 00:00:03, Ethernet0/2
O 192.168.20.0/24 via 12.1.1.1, 00:00:03, Ethernet0/2
O 192.168.30.0/24 via 12.1.1.1, 00:00:03, Ethernet0/2
O 192.168.40.0/24 via 12.1.1.1, 00:00:03, Ethernet0/2
O 192.168.50.0/24 via 12.1.1.1, 00:00:03, Ethernet0/2
O 192.168.100.0/24 via 12.1.1.1, 00:00:03, Ethernet0/2
SW3
interface GigabitEthernet0/0
switchport access vlan 100
switchport trunk encapsulation dot1q
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
!
10 VLAN0010 active
20 VLAN0020 active
50 VLAN0050 active
100VLAN0100 active Gi0/0
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
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
R1
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 via 12.1.1.2, 00:25:24, Ethernet0/2
23.0.0.0/24 is subnetted, 1 subnets
O 23.1.1.0 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
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
!
R3
12.0.0.0/24 is subnetted, 1 subnets
O 12.1.1.0 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 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 via 13.1.1.1, 00:33:27, Ethernet0/0
O 192.168.20.0/24 via 13.1.1.1, 00:33:27, Ethernet0/0
O 192.168.30.0/24 via 13.1.1.1, 00:33:27, Ethernet0/0
O 192.168.40.0/24 via 13.1.1.1, 00:33:27, Ethernet0/0
O 192.168.50.0/24 via 13.1.1.1, 00:33:27, Ethernet0/0
O 192.168.100.0/24 via 13.1.1.1, 00:28:44, Ethernet0/0
R4
12.0.0.0/24 is subnetted, 1 subnets
O 12.1.1.0 via 22.1.1.2, 00:33:42, Ethernet0/0
13.0.0.0/24 is subnetted, 1 subnets
O 13.1.1.0 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 via 23.1.1.1, 00:31:49, Ethernet0/1
via 22.1.1.2, 00:33:42, Ethernet0/0
O 192.168.20.0/24 via 23.1.1.1, 00:31:49, Ethernet0/1
via 22.1.1.2, 00:33:42, Ethernet0/0
O 192.168.30.0/24 via 23.1.1.1, 00:31:49, Ethernet0/1
via 22.1.1.2, 00:33:42, Ethernet0/0
O 192.168.40.0/24 via 23.1.1.1, 00:31:49, Ethernet0/1
via 22.1.1.2, 00:33:42, Ethernet0/0
O 192.168.50.0/24 via 23.1.1.1, 00:31:49, Ethernet0/1
via 22.1.1.2, 00:33:42, Ethernet0/0
O 192.168.100.0/24 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
!
SW6/7
interface GigabitEthernet0/0
switchport trunk encapsulation dot1q
switchport mode trunk
negotiation auto
!
interface GigabitEthernet0/1
switchport access vlan 10
switchport mode access
negotiation auto
!
interface GigabitEthernet0/2
switchport access vlan 50
switchport trunk encapsulation dot1q
switchport mode access
negotiation auto
页:
[1]