b2科目四模拟试题多少题驾考考爆了怎么补救
b2科目四模拟试题多少题 驾考考爆了怎么补救

对等网的组建_组建对等网的注意事项_如何组建对等网(8)

电脑杂谈  发布时间:2016-12-16 08:02:56  来源:网络整理

Switch_2960 1台;Swithc_3560 1台;PC 3台;直连线

PC1

IP: 192.168.1.2

Submark: 255.255.255.0

Gateway: 192.168.1.1

PC2

IP: 192.168.2.2

Submark: 255.255.255.0

Gateway: 192.168.2.1

对等网的组建_组建对等网的注意事项_如何组建对等网

PC3

IP: 192.168.1.3

Submark: 255.255.255.0

Gateway: 192.168.1.1

PC1 Ping PC3

Ping 192.168.1.3 reply

PC1 Ping PC2

Ping 192.168.2.2 timeout

S2960

Switch>en

Switch#conf t

Switch(config )#vlan 2

Switch(config-vlan)#exit

Switch(config )#vlan 3

Switch(config-vlan)#exit

Switch(config )#int fa 0/2

Switch(config-if)#switchport access vlan 2 Switch(config-if)#exit

Switch(config )#int fa 0/3

Switch(config-if)#switchport access vlan 3

Switch(config-if)#exit

Switch(config )#int fa 0/1

Switch(config-if)#switchport mode trunk

Switch(config-if)#end

Switch#show vlan

S3560

Switch>en

Switch#conf t

Switch(config )#vlan 2 //新建vlan 2

Switch(config-vlan)#exit

Switch(config )#vlan 3 //新建vlan 3

Switch(config-vlan)#exit

Switch(config )#int fa 0/1 //进入0模块第1端口

Switch(config-if)#switchport trunk encapsulation dot1q //给这个接口的trunk封装为802.1Q的帧格式

Switch(config-if)#switchport mode trunk //定义这个接口的工作模式为trunk

Switch(config-if)#exit

Switch(config )#int fa 0/2 //进入0模块第2端口

Switch(config-if)#switchport access vlan 2 //当前端口加入vlan 2

Switch(config-if)#exit

Switch(config )#intece vlan 2 //进入vlan2 虚拟接口

Switch(config-if)#ip address 192.168.1.1 255.255.255.0 //配置IP地址

Switch(config-if)#no shutdown //开启该端口

Switch(config-if)#exit

Switch(config )#intece vlan 3

Switch(config-if)#ip address 192.168.2.1 255.255.255.0

Switch(config-if)#no shutdown


本文来自电脑杂谈,转载请注明本文网址:
http://www.pc-fly.com/a/tongxinshuyu/article-22914-8.html

相关阅读
    发表评论  请自觉遵守互联网相关的政策法规,严禁发布、暴力、反动的言论

    热点图片
    拼命载入中...