学员提问:
CISCO1841路由器+HWIC4ESW交换模块 配置了VLAN10和VLAN40,两个端口分别接了192.168.10.X网段和192.168.40.X网段的两个子网,请问如果可以让两个网段的PC相互访问 配置:
interface FastEthernet0/0/0
switchport access vlan 10
!
!
interface FastEthernet0/0/3
switchport access vlan 40
!
interface Vlan10
ip address 192.168.10.254 255.255.255.0
ip access-group 110 in
ip nat inside
ip virtual-reassembly
!
!
interface Vlan40
ip address 192.168.40.254 255.255.255.0
ip access-group 140 in
ip nat inside
ip virtual-reassembly
!
interface FastEthernet0/0/0
switchport access vlan 10
!
!
interface FastEthernet0/0/3
switchport access vlan 40
!
interface Vlan10
ip address 192.168.10.254 255.255.255.0
ip access-group 110 in
ip nat inside
ip virtual-reassembly
!
!
interface Vlan40
ip address 192.168.40.254 255.255.255.0
ip access-group 140 in
ip nat inside
ip virtual-reassembly
!
捷盈讲师及学员解答:
PC的网关知道相应的端口上,应该是可以通信的。

