发布网友 发布时间:2024-04-08 13:18
共5个回答
热心网友 时间:2024-04-25 02:34
首先要给路由器指定2个ip地址,A地址为:192.168.1.2 ,,,,,B为:192.168.2.2热心网友 时间:2024-04-25 02:35
一楼回答的可以,只不过做静态路由哪步可以省略了,因为在路由器上给两个端口配了两个IP后,在路由表中会自动生成两个直连路由条目。步骤:热心网友 时间:2024-04-25 02:31
没人发现吗?楼主线都接错了,,主机和路由器属于同种设备,应该用虚线的交叉线而不是用直通线。热心网友 时间:2024-04-25 02:36
线用错了;2.路由两端口配置IP,F0/0:192.168.1.1 255.255.255.0 F0/1 192.168.2.1 255.255.255.0
3.两PC上配置IP PC1:192.168.1.2 255.255.255.0 网关是192.168.1.1 PC2:192.168.2.2 255.255.255.0 网关是192.168.2.1
Router>enable
Router#config terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#interfac f0/0
Router(config-if)#ip address 192.168.1.1 255.255.255.0
Router(config-if)#no shutdown
Router(config-if)#
%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up
Router(config-if)#do wr
Building configuration...
[OK]
Router(config-if)#interface f0/1
Router(config-if)#ip address 192.168.2.1 255.255.255.0
Router(config-if)#no shutdown
Router(config-if)#
%LINK-5-CHANGED: Interface FastEthernet0/1, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to up
Router(config-if)#do wr
Building configuration...
[OK]
热心网友 时间:2024-04-25 02:32
配单臂路由 PC1 192.168.1.2 分配到 vlan 10 F0/1 PC2 192.168.2.1 分配到 vlan 20 F0/2 接路由器的交换机端口 配TRUNK F0/24 交换机配置 en conf(tab补) vlan 10 vlan 20 int f0/1 swi acc vlan 10 int f0/2 swi acc vlan 20 int f0/24 swi m t 路由器配置 接 f0/0 no en conf int f 0/0 no shutdown int f0/0.1 enca do 10 ip add 192.168.1.1 255.255.255.0 no shutd int f0/0.2 enca do 20 ip add 192.168.2.1 255.255.255.0 no shutd (所有命令简写 按tab补全)~