這個要求怎么配置啊
uj5u.com熱心網友回復:
這個很簡單啊uj5u.com熱心網友回復:
eve模擬器做的 介面可能不一樣 大概配置就這樣
PC1:
ip 192.168.100.1 255.255.255.0 gateway 192.168.100.254
PC2:
ip 192.168.1.1 255.255.255.0 gateway 192.168.1.254
L2SW:空配
R1:
hostname R1
!
interface Loopback0
ip address 1.1.1.1 255.255.255.255
!
interface Ethernet0/0
ip address 20.0.0.1 255.255.255.0
ip nat outside
ip ospf network point-to-point
!
interface Ethernet0/1
ip address 192.168.1.254 255.255.255.0 secondary
ip address 192.168.100.254 255.255.255.0
ip nat inside
!
router ospf 1
router-id 1.1.1.1
network 20.0.0.0 0.0.0.255 area 1
!
ip nat pool server 20.0.0.1 20.0.0.1 netmask 255.255.255.0
ip nat inside source list NAT pool server
!
ip access-list standard NAT
permit 192.168.100.0 0.0.0.255
permit 192.168.1.0 0.0.0.255
R2:
hostname R2
!
interface Loopback0
ip address 2.2.2.2 255.255.255.255
!
interface Ethernet0/0
ip address 20.0.0.2 255.255.255.0
ip ospf network point-to-point
!
interface Ethernet0/1
ip address 30.10.1.2 255.255.255.0
ip ospf network point-to-point
!
router ospf 1
router-id 2.2.2.2
network 20.0.0.0 0.0.0.255 area 1
network 30.10.1.0 0.0.0.255 area 0
L3SW:
hostname L3SW
!
interface Loopback0
ip address 20.20.20.20 255.255.255.255
!interface Ethernet0/1
no switchport
ip address 30.10.1.3 255.255.255.0
ip ospf network point-to-point
!
interface Ethernet0/2
no switchport
ip address 200.10.1.254 255.255.255.0
!
router ospf 1
router-id 20.20.20.20
redistribute connected subnets
network 30.10.1.0 0.0.0.255 area 0
Server:
ip 200.10.1.6 255.255.255.0 gateway 200.10.1.254
轉載請註明出處,本文鏈接:https://www.uj5u.com/qita/8997.html
標籤:網絡協議與配置
上一篇:Android 11正式版發布!
