У меня проблема с подключением Windows VM к Интернету в GNS3. Я хочу получить доступ к Интернету через браузер.
Я настроил nat и dhcp на маршрутизаторе cisco. ВМ может пинговать 8.8.8.8, но не пинговать google.com. DNS на маршрутизаторе включен, и маршрутизатор может пинговать "google.com"
показать запустить МАРШРУТИЗАТОР
Building configuration...
Current configuration : 2021 bytes
!
version 15.2
service timestamps debug datetime msec
service timestamps log datetime msec
service password-encryption
!
hostname ROUTER
!
boot-start-marker
boot-end-marker
!
!
enable secret 5 $1$vpt4$aBSXeMlegPnqvaKy04PBk1
!
no aaa new-model
no ip icmp rate-limit unreachable
ip cef
!
!
!
ip dhcp excluded-address 172.16.0.1 172.16.0.5
!
ip dhcp pool POOL
network 172.16.0.0 255.255.255.0
default-router 172.16.0.1
domain-name diplom.com
dns-server 8.8.8.8 192.168.122.1
!
!
!
ip domain name diplom.com
ip name-server 8.8.8.8
no ipv6 cef
!
!
multilink bundle-name authenticated
!
!
!
!
!
!
!
username admin privilege 15 secret 5 $1$O8JE$mlDH4fSZayRd.xcm.4RBm0
username user secret 5 $1$vR9.$aUrzfhTJKLMRNlnHSS2q./
!
!
ip tcp synwait-time 5
ip ssh maxstartups 2
ip ssh time-out 40
ip ssh authentication-retries 2
ip ssh version 2
!
!
!
!
!
!
!
!
!
!
!
!
interface Ethernet0/0
no ip address
shutdown
duplex auto
!
interface GigabitEthernet0/0
ip address dhcp
ip nat outside
media-type gbic
speed 1000
duplex full
negotiation auto
!
interface GigabitEthernet1/0
ip address 172.16.0.1 255.255.255.0
ip nat inside
negotiation auto
!
interface Serial2/0
ip address 10.10.10.1 255.255.255.252
serial restart-delay 0
!
interface Serial2/1
no ip address
shutdown
serial restart-delay 0
!
interface Serial2/2
no ip address
shutdown
serial restart-delay 0
!
interface Serial2/3
no ip address
shutdown
serial restart-delay 0
!
ip nat inside source list 1 interface GigabitEthernet0/0 overload
ip forward-protocol nd
!
!
no ip http server
no ip http secure-server
ip route 0.0.0.0 0.0.0.0 192.168.122.1
ip route 20.20.20.0 255.255.255.252 10.10.10.2
!
access-list 1 permit 172.16.0.0 0.0.0.255
!
!
!
control-plane
!
!
line con 0
exec-timeout 0 0
privilege level 15
password 7 095C4F1A0A1218000F
logging synchronous
login local
stopbits 1
line aux 0
exec-timeout 0 0
privilege level 15
logging synchronous
stopbits 1
line vty 0 4
password 7 05181507
login local
transport input ssh
!
!
end
показать запустить SWITCH
Building configuration...
Current configuration : 5028 bytes
!
! Last configuration change at 16:32:22 UTC Thu Apr 2 2020
!
version 15.2
service timestamps debug datetime msec
service timestamps log datetime msec
service password-encryption
service compress-config
!
hostname SWITCH
!
boot-start-marker
boot-end-marker
!
!
enable secret 5 $1$4hKt$7hlASkTe.X0CLAU3vJTBx1
!
username admin privilege 15 secret 5 $1$t0La$3WwZKUv7RNd0BVNwxifFu.
username user secret 5 $1$FNGV$yUuL.rX.uQHj7pJnlDSmt0
no aaa new-model
!
!
!
!
!
!
!
!
ip domain-name diplom.com
ip cef
no ipv6 cef
!
!
!
spanning-tree mode pvst
spanning-tree extend system-id
!
vlan internal allocation policy ascending
!
!
!
!
!
!
!
!
!
!
!
!
!
!
interface GigabitEthernet0/0
media-type rj45
negotiation auto
!
interface GigabitEthernet0/1
switchport mode access
switchport port-security mac-address sticky
switchport port-security mac-address sticky 000c.293a.afdd
switchport port-security
media-type rj45
negotiation auto
!
interface GigabitEthernet0/2
switchport mode access
switchport port-security mac-address sticky
switchport port-security mac-address sticky 000c.296d.e9ce
switchport port-security
media-type rj45
negotiation auto
!
interface GigabitEthernet0/3
switchport mode access
switchport port-security mac-address sticky
switchport port-security mac-address sticky 000c.295f.49f3
switchport port-security
media-type rj45
negotiation auto
!
interface GigabitEthernet1/0
switchport mode access
switchport port-security mac-address sticky
switchport port-security
media-type rj45
negotiation auto
!
interface GigabitEthernet1/1
switchport mode access
switchport port-security mac-address sticky
switchport port-security
media-type rj45
negotiation auto
!
interface GigabitEthernet1/2
switchport mode access
switchport port-security mac-address sticky
switchport port-security
media-type rj45
negotiation auto
!
interface GigabitEthernet1/3
switchport mode access
switchport port-security mac-address sticky
switchport port-security
media-type rj45
negotiation auto
!
interface GigabitEthernet2/0
switchport mode access
switchport port-security mac-address sticky
switchport port-security
media-type rj45
negotiation auto
!
interface GigabitEthernet2/1
shutdown
media-type rj45
negotiation auto
!
interface GigabitEthernet2/2
shutdown
media-type rj45
negotiation auto
!
interface GigabitEthernet2/3
shutdown
media-type rj45
negotiation auto
!
interface GigabitEthernet3/0
shutdown
media-type rj45
negotiation auto
!
interface GigabitEthernet3/1
shutdown
media-type rj45
negotiation auto
!
interface GigabitEthernet3/2
shutdown
media-type rj45
negotiation auto
!
interface GigabitEthernet3/3
shutdown
media-type rj45
negotiation auto
!
interface Vlan1
ip address 172.16.0.2 255.255.255.0
!
ip default-gateway 172.16.0.1
ip forward-protocol nd
!
no ip http server
no ip http secure-server
!
ip ssh maxstartups 2
ip ssh time-out 40
ip ssh authentication-retries 2
ip ssh version 2
!
!
!
!
!
control-plane
!
banner exec ^C
**************************************************************************
* IOSv is strictly limited to use for evaluation, demonstration and IOS *
* education. IOSv is provided as-is and is not supported by Cisco's *
* Technical Advisory Center. Any use or disclosure, in whole or in part, *
* of the IOSv Software or Documentation to any third party for any *
* purposes is expressly prohibited except as otherwise authorized by *
* Cisco in writing. *
**************************************************************************^C
banner incoming ^C
**************************************************************************
* IOSv is strictly limited to use for evaluation, demonstration and IOS *
* education. IOSv is provided as-is and is not supported by Cisco's *
* Technical Advisory Center. Any use or disclosure, in whole or in part, *
* of the IOSv Software or Documentation to any third party for any *
* purposes is expressly prohibited except as otherwise authorized by *
* Cisco in writing. *
**************************************************************************^C
banner login ^C
**************************************************************************
* IOSv is strictly limited to use for evaluation, demonstration and IOS *
* education. IOSv is provided as-is and is not supported by Cisco's *
* Technical Advisory Center. Any use or disclosure, in whole or in part, *
* of the IOSv Software or Documentation to any third party for any *
* purposes is expressly prohibited except as otherwise authorized by *
* Cisco in writing. *
**************************************************************************^C
!
line con 0
password 7 071F205F5D1E161713
logging synchronous
login local
line aux 0
line vty 0 4
password 7 105E080A16001D1908
logging synchronous
login local
transport input ssh
!
!
end
ipconfig -all на виртуальной машине
C:\Users\Windows(I)>ipconfig -all
Windows IP Configuration
Host Name . . . . . . . . . . . . : DESKTOP-4TV1JCP
Primary Dns Suffix . . . . . . . :
Node Type . . . . . . . . . . . . : Hybrid
IP Routing Enabled. . . . . . . . : No
WINS Proxy Enabled. . . . . . . . : No
DNS Suffix Search List. . . . . . : diplom.com
Ethernet adapter Ethernet0 2:
Connection-specific DNS Suffix . : diplom.com
Description . . . . . . . . . . . : Intel(R) PRO/1000 MT Network Connection
Physical Address. . . . . . . . . : 00-0C-29-6D-E9-CE
DHCP Enabled. . . . . . . . . . . : Yes
Autoconfiguration Enabled . . . . : Yes
Link-local IPv6 Address . . . . . : fe80::54b9:4eb7:2d99:aab%2(Preferred)
IPv4 Address. . . . . . . . . . . : 172.16.0.6(Preferred)
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Lease Obtained. . . . . . . . . . : Thursday, April 2, 2020 7:33:07 PM
Lease Expires . . . . . . . . . . : Friday, April 3, 2020 7:33:07 PM
Default Gateway . . . . . . . . . : 172.16.0.1
DHCP Server . . . . . . . . . . . : 172.16.0.1
DHCPv6 IAID . . . . . . . . . . . : 369101865
DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-26-14-2B-2A-00-0C-29-6D-E9-CE
DNS Servers . . . . . . . . . . . : 8.8.8.8
192.168.122.1
NetBIOS over Tcpip. . . . . . . . : Enabled
Ethernet adapter Bluetooth Network Connection:
Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Bluetooth Device (Personal Area Network)
Physical Address. . . . . . . . . : E8-6F-38-71-D5-56
DHCP Enabled. . . . . . . . . . . : Yes
Autoconfiguration Enabled . . . . : Yes
Как я могу это исправить?
Спасибо.