- 积分
- 41
- 鸿鹄币
- 个
- 好评度
- 点
- 精华
- 注册时间
- 2009-12-30
- 最后登录
- 1970-1-1
- 阅读权限
- 10
- 听众
- 收听
网络小学徒

|
发表于 2009-12-30 22:19:48
|
显示全部楼层
这个有没有一个比较好的解决啊,我也是这里没有做出来~~~,很晚才看到这个作业,恩,很不错哦~~~希望还能继续做,谢谢~~不过为什么我剩下这2个,只有96%呢?
目前是PC1,PC2,PC3能互通,而且和R1能通,主要部分的代码如下
R1:-
- interface FastEthernet0/1.10
- encapsulation dot1Q 10
- ip address 172.17.10.1 255.255.255.0
- !
- interface FastEthernet0/1.20
- encapsulation dot1Q 20
- ip address 172.17.20.1 255.255.255.0
- !
- interface FastEthernet0/1.30
- encapsulation dot1Q 30
- ip address 172.17.30.1 255.255.255.0
- !
- interface FastEthernet0/1.99
- encapsulation dot1Q 99 native
- ip address 172.17.99.1 255.255.255.0
- !
复制代码 S1:-
- spanning-tree vlan 1,10,20,30,99 priority 4096
- !
- interface FastEthernet0/1
- switchport trunk native vlan 99
- switchport mode trunk
- !
- interface FastEthernet0/2
- switchport trunk native vlan 99
- switchport mode trunk
- !
- interface FastEthernet0/3
- switchport trunk native vlan 99
- switchport mode trunk
- !
- interface FastEthernet0/4
- switchport trunk native vlan 99
- switchport mode trunk
- !
- interface FastEthernet0/5
- switchport access vlan 30
- switchport trunk native vlan 99
- switchport mode trunk
- !
- !
- interface Vlan1
- no ip address
- shutdown
- !
- interface Vlan10
- no ip address
- !
- interface Vlan20
- no ip address
- !
- interface Vlan30
- no ip address
- !
- interface Vlan99
- ip address 172.17.99.31 255.255.255.0
- !
- ip default-gateway 172.17.99.1
- !
复制代码 S2:-
- interface FastEthernet0/1
- switchport trunk native vlan 99
- switchport mode trunk
- !
- interface FastEthernet0/2
- switchport trunk native vlan 99
- switchport mode trunk
- !
- interface FastEthernet0/3
- switchport trunk native vlan 99
- switchport mode trunk
- !
- interface FastEthernet0/4
- switchport trunk native vlan 99
- switchport mode trunk
- !
- interface FastEthernet0/6
- switchport access vlan 30
- switchport mode access
- !
- interface FastEthernet0/11
- switchport access vlan 10
- switchport mode access
- !interface FastEthernet0/18
- switchport access vlan 20
- switchport mode access
- !
- interface Vlan99
- ip address 172.17.99.32 255.255.255.0
- !
- ip default-gateway 172.17.99.1
- !
复制代码 S3:-
- interface FastEthernet0/1
- switchport trunk native vlan 99
- switchport mode trunk
- !
- interface FastEthernet0/2
- switchport trunk native vlan 99
- switchport mode trunk
- !
- interface FastEthernet0/3
- switchport trunk native vlan 99
- switchport mode trunk
- !
- interface FastEthernet0/4
- switchport trunk native vlan 99
- switchport mode trunk
- !
- interface Vlan99
- ip address 172.17.99.33 255.255.255.0
- !
- ip default-gateway 172.17.99.1
- !
复制代码 |
6#
2009-12-30 22:19:48
回复(0)
收起回复
|