- 积分
- 439
- 鸿鹄币
- 个
- 好评度
- 点
- 精华
- 注册时间
- 2013-10-13
- 最后登录
- 1970-1-1
- 阅读权限
- 30
- 听众
- 收听
初级工程师
![Rank: 3](https://cdn.hh010.com/static/image/common/star_level1.gif) ![Rank: 3](https://cdn.hh010.com/static/image/common/star_level1.gif) ![Rank: 3](https://cdn.hh010.com/static/image/common/star_level1.gif)
|
发表于 2013-12-27 20:03:37
|
显示全部楼层
三台PC的IP分别是10.1.1.10/24,
10.1.2.10/24,
10.1.3.10/24,
路由器:
interface FastEthernet0/0
no ip address
!
interface FastEthernet0/0.10
encapsulation dot1Q 10
ip address 10.1.1.1 255.255.255.0
!
interface FastEthernet0/0.20
encapsulation dot1Q 20
ip address 10.1.2.1 255.255.255.0
!
interface FastEthernet0/0.30
encapsulation dot1Q 30
ip address 10.1.3.1 255.255.255.0
交换机:
interface FastEthernet0/1
switchport access vlan 10
switchport mode access
!
interface FastEthernet0/2
switchport access vlan 20
switchport mode access
!
interface FastEthernet0/3
switchport access vlan 30
switchport mode access
!
interface FastEthernet0/10
switchport mode trunk
这之后三台主机就可以互通了,这代码够详细了,如果还有问题就把你的实验发给我吧!
[img]file:///C:\Users\Administrator\AppData\Roaming\Tencent\Users\280624638\QQ\WinTemp\RichOle\_PXXE[BMYG1))0`9E9N2ES2.jpg[/img]
[img]file:///C:\Users\Administrator\AppData\Roaming\Tencent\Users\280624638\QQ\WinTemp\RichOle\_PXXE[BMYG1))0`9E9N2ES2.jpg[/img]
|
-
11#
2013-12-27 20:03:37
回复(0)
收起回复
|