그림과 같은 상황이 있습니다.네트워크 구성표
Centos VM이 인터넷에 액세스할 수 있도록 하고 싶습니다. Windows 쉘에 입력해야 하는 올바른 명령은 무엇입니까? 이미 regedit.exe에서 IPRouting을 활성화했습니다. 여기에 두 개의 라우팅 테이블을 넣었습니다. 하나는 구성 후이고 다른 하나는 Windows 인터넷 공유를 활성화한 후입니다. 똑같은 것 같지만 첫 번째는 작동하지 않고 두 번째는 작동합니다.
IPv4 Route Table
===========================================================================
Active Routes:
Network Destination Netmask Gateway Interface Metric
0.0.0.0 0.0.0.0 192.168.40.2 192.168.40.129 266
127.0.0.0 255.0.0.0 On-link 127.0.0.1 306
127.0.0.1 255.255.255.255 On-link 127.0.0.1 306
127.255.255.255 255.255.255.255 On-link 127.0.0.1 306
192.168.2.0 255.255.255.0 On-link 192.168.2.129 266
192.168.2.129 255.255.255.255 On-link 192.168.2.129 266
192.168.2.255 255.255.255.255 On-link 192.168.2.129 266
192.168.40.0 255.255.255.0 On-link 192.168.40.129 266
192.168.40.129 255.255.255.255 On-link 192.168.40.129 266
192.168.40.255 255.255.255.255 On-link 192.168.40.129 266
224.0.0.0 240.0.0.0 On-link 127.0.0.1 306
224.0.0.0 240.0.0.0 On-link 192.168.40.129 266
224.0.0.0 240.0.0.0 On-link 192.168.2.129 266
255.255.255.255 255.255.255.255 On-link 127.0.0.1 306
255.255.255.255 255.255.255.255 On-link 192.168.40.129 266
255.255.255.255 255.255.255.255 On-link 192.168.2.129 266
===========================================================================
Persistent Routes:
Network Address Netmask Gateway Address Metric
0.0.0.0 0.0.0.0 192.168.40.2 Default
===========================================================================
===========================================================================
IPv4 Route Table
===========================================================================
Active Routes:
Network Destination Netmask Gateway Interface Metric
0.0.0.0 0.0.0.0 192.168.40.2 192.168.40.129 266
127.0.0.0 255.0.0.0 On-link 127.0.0.1 306
127.0.0.1 255.255.255.255 On-link 127.0.0.1 306
127.255.255.255 255.255.255.255 On-link 127.0.0.1 306
192.168.40.0 255.255.255.0 On-link 192.168.40.129 266
192.168.40.129 255.255.255.255 On-link 192.168.40.129 266
192.168.40.255 255.255.255.255 On-link 192.168.40.129 266
192.168.137.0 255.255.255.0 On-link 192.168.137.1 266
192.168.137.1 255.255.255.255 On-link 192.168.137.1 266
192.168.137.255 255.255.255.255 On-link 192.168.137.1 266
224.0.0.0 240.0.0.0 On-link 127.0.0.1 306
224.0.0.0 240.0.0.0 On-link 192.168.40.129 266
224.0.0.0 240.0.0.0 On-link 192.168.137.1 266
255.255.255.255 255.255.255.255 On-link 127.0.0.1 306
255.255.255.255 255.255.255.255 On-link 192.168.40.129 266
255.255.255.255 255.255.255.255 On-link 192.168.137.1 266
===========================================================================
Persistent Routes:
Network Address Netmask Gateway Address Metric
0.0.0.0 0.0.0.0 192.168.40.2 Default
===========================================================================