Обновить FINAL/R2.txt

master
melenilya 2025-04-13 17:43:33 +03:00
parent 059bede85c
commit ec5b580ccc
1 changed files with 25 additions and 11 deletions

View File

@ -2,7 +2,7 @@ enable
configure terminal configure terminal
no ip domain-lookup no ip domain-lookup
service password-encryption service password-encryption
hostname R2-DHCP hostname R2
enable secret class enable secret class
line console 0 line console 0
password cisco password cisco
@ -14,33 +14,47 @@ password cisco
login login
exit exit
banner motd #Unauthorized access prohibited# banner motd #Unauthorized access prohibited#
service dhcp access-list 1 permit 192.168.2.0 0.0.0.255
access-list 1 permit 192.168.1.0 0.0.0.255
ip nat inside source list 1 interface g0/0 overload
interface g0/1
ip nat inside
interface g0/2
ip nat inside
int g0/0
ip nat outside
exit
ip dhcp pool VLAN_A_POOL ip dhcp pool VLAN_A_POOL
network 192.168.1.0 255.255.255.0 network 192.168.1.0 255.255.255.0
default-router 192.168.1.1 default-router 192.168.1.1
ip dhcp pool VLAN_B_POOL ip dhcp pool VLAN_B_POOL
network 192.168.2.0 255.255.255.0 network 192.168.2.0 255.255.255.0
default-router 192.168.2.1 default-router 192.168.2.1
ip dhcp excluded-address 192.168.1.1
ip dhcp excluded-address 192.168.2.1 ip dhcp excluded-address 192.168.2.1
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ip dhcp excluded-address 192.168.1.1
interface g0/1 interface g0/1
ip address 172.16.1.1 255.255.255.0 ip address 10.0.0.1 255.255.255.252
no shutdown no shutdown
exit exit
interface g0/0 interface g0/0
ip address 10.1.1.1 255.255.255.252 ip address 203.0.113.17 255.255.255.248
no shutdown no shutdown
exit exit
ip route 0.0.0.0 0.0.0.0 <INT R3> int g0/2
ip address 10.0.10.1 255.255.255.252
no shutdown
exit
ip route 0.0.0.0 0.0.0.0 203.0.113.18
interface Tunnel0 interface Tunnel0
ip address 172.16.12.1 255.255.255.252 ip address 172.16.12.1 255.255.255.252
tunnel source 10.1.1.1 tunnel source 203.0.113.17
tunnel destination 10.2.2.1 tunnel destination 203.0.113.26
no shutdown no shutdown
exit exit
router ospf 1 router ospf 1
network 172.16.1.0 0.0.0.255 area 0 network 10.0.10.0 0.0.0.3 area 1
network 172.16.12.0 0.0.0.3 area 0 network 172.16.12.0 0.0.0.3 area 1
passive-interface g0/0
passive-interface g0/1
end end
copy running-config startup-config copy running-config startup-config