瀏覽量:7次
PC1配置:
No ip routing
interface FastEthernet0/0
ip address 172.16.20.254 255.255.255.0
No shutdown
PC2配置:
No ip routing
interface FastEthernet0/0
ip address 172.16.30.254 255.255.255.0
No shutdown
Switch配置:
Ip routing
interface FastEthernet0/1
switchport access VLAN 20
no ip address
!
interface FastEthernet0/2
switchport access VLAN 30
no ip address
!
VLAN database
VLAN 20
VLAN 30
Exit
!
interface VLAN20
ip address 172.16.20.1 255.255.255.0
No shutdown
!
interface VLAN30
ip address 172.16.30.1 255.255.255.0
No shutdown
===========================
驗(yàn)證:
PC1#ping 172.16.30.254 Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 172.16.30.254, timeout is 2 seconds: !!!!! Success rate is 100 percent (5/5), round-trip min/avg/max = 44/100/196 ms
PC2#ping 172.16.20.254 Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 172.16.20.254, timeout is 2 seconds: !!!!! Success rate is 100 percent (5/5), round-trip min/avg/max = 56/80/120 ms
[聲明]本網(wǎng)轉(zhuǎn)載網(wǎng)絡(luò)媒體稿件是為了傳播更多的信息,此類稿件不代表本網(wǎng)觀點(diǎn),本網(wǎng)不承擔(dān)此類稿件侵權(quán)行為的連帶責(zé)任。故此,如果您發(fā)現(xiàn)本網(wǎng)站的內(nèi)容侵犯了您的版權(quán),請您的相關(guān)內(nèi)容發(fā)至此郵箱【779898168@qq.com】,我們在確認(rèn)后,會立即刪除,保證您的版權(quán)。
官網(wǎng)優(yōu)化
整站優(yōu)化
渠道代理
400-655-5776