导航:首页 > 解决方法 > 单臂路由简单配置方法思科

单臂路由简单配置方法思科

发布时间:2022-03-12 11:29:03

❶ 在思科三层交换机上配置单臂路由有什么方法

有两种方法
第一种:在靠近路由器那端的三层交换机的接口配置语句 no switchport
第二种:给靠近路由器那端的三层交换机的接口划分VLAN,再给这个VLAN划分IP地址

❷ 单臂路由是如何工作的,,画图解释一下,需要的设备,用思科来配置,麻烦懂得详细的解释一下

实际就是将一个接口定义为子接口int f1/0.1
一般VLAN最简单的环境,一个交换机 一个路由器,两台交换机划分多端口就用VTP中继
一般现在都是用三层交换机来代替路由器

❸ 思科路由器配置单臂路由的方法,最好详细说明

一楼的回答的就蛮好的,单臂路由现在用的少了,那个路由的接口必须是百兆以上,支持自接口划分,其他的交换机接在上面的要是不同的vlan,选择好encapsulotion dot1q X,X代表vlan号。一定要透传过去。

❹ 思科配置单臂路由 举个例子

单臂路由
路由器配置:
1设置F0/0接口无IP,开启接口。

interface FastEthernet0/0
no ip address

2在FA0/0接口上设置两个子接口,分别更改封装为DOT1Q,并设置各自的IP地址。
interface FastEthernet0/0.1
encapsulation dot1Q 2
ip address 1.1.1.1 255.255.255.0
!
interface FastEthernet0/0.2
encapsulation dot1Q 3
ip address 2.2.2.1 255.255.255.0
要注意的是这里的VLAN号码要和交换机中的VLAN号对应起来。

交换机配置:
首先在交换机上划分两个VLAN。

Vlan 2 name pc1
Vlan 3 name pc2

1 将交换机连接路由器的接口设置为TRUNK。
interface FastEthernet1/5
switchport mode trunk
!
2 将交换机连接两台PC的接口绑定到不同的VLAN中去。
interface FastEthernet1/11
switchport access vlan 2
!
interface FastEthernet1/12
switchport access vlan 3

PC配置:
给PC的F0/0接口设置与路由器对应子接口同一网段的IP地址。
PC1
interface FastEthernet0/0
ip address 1.1.1.2 255.255.255.0
!
PC2
interface FastEthernet0/0
ip address 2.2.2.2 255.255.255.0
!
给两个PC分别设置一条缺省路由,将出口指向F0/0,即划分入VLAN的接口。
ip route 0.0.0.0 0.0.0.0 FastEthernet0/0

至此,单臂路由的实验配置完成。测试的时候在PC1上PING一下PC2,应该可以看到结果。
要点:1,注意子接口的IP要和PC的IP在同一网段。2,要确保所有接口的配置正确,并都打开了接口。3,作为PC使用的路由器上必须配置有正确的路由条目。

例子:
s2960一台,r2811一台,PC2台

SW#vlan database
SW(vlan)#vlan 2
VLAN 2 added:
Name: VLAN0002
SW(vlan)#vlan 3
VLAN 3 added:
Name: VLAN0003
SW(vlan)#exit
SW(config)#int f0/2
SW(config-if)#switchport mode access
SW(config-if)#switchport access vlan 2
SW(config-if)#no shutdown
SW(config-if)#int f0/3
SW(config-if)#switchport mode access
SW(config-if)#switchport access vlan 3
SW(config-if)#no shutdown
SW(config-if)#int f0/1
SW(config-if)#switchport mode trunk
SW(config-if)#no shutdown

路由器配置如下:

R(config)#int f0/0
R(config-if)#no shutdown
R(config-if)#int f0/0.2
R(config-subif)#encapsulation dot1q 2
R(config-subif)#ip address 192.168.2.254 255.255.255.0
R(config-subif)#no shutdown
R(config-subif)#int f0/0.3
R(config-subif)#encapsulation dot1q 3
R(config-subif)#ip address 192.168.3.254 255.255.255.0
R(config-subif)#no shutdown
R(config-subif)#end

客户机配置如下:

HostA:
ip:192.168.2.1/24
ip default-gateway:192.168.2.254

HostB:
ip:192.168.3.1/24
ip default-gateway:192.168.3.254

❺ 请教IT高手,教教我怎么配置 单臂路由 (思科产品)

这个不是一句两句就能说清楚的
网上有视频的

❻ 思科单臂路由配置

1台和多台没啥区别。

2台sw分别申明好所有vlan,把相应端口加入vlan,和rt连接的接口起trunk

rt做子接口,配ip作为pc的gw,封装trunk模式

需要远程管理sw的话,给sw的某个vlan添加ip,全局配置模式下配默认网关ip

这里是个带拓扑图的实例,再不会就留言给我。
http://hi..com/robrina/blog/item/ae9a3c956c0ce60e7af4807f.html

❼ cisco单臂路由的配置

你好!
直接打命令给你看了,假设有两个vlan ,分别是10和20,对应的网段也是192.168.X.0,网关为192.168.X.1,两台交换机fa0/24相连,switch1的fa0/1连接路由器的fa0/0,switch0的fa0/1连接pC0,switch1的fa0/2连接pc2

switch0

enable
vlan database
vlan 10
vlan 20
exit
configure terminal
vtp domian network
vrtp mode server
interface fa0/24
switchport mode trunk
interface fa0/1
switchport mode access
switchport access vlan 10
exit

switch1

enable
configure terminal
vtp domain network
vtp mode client
int fa0/24
switchport mode access
int fa0/2
switchport mode access
switchport access vlan 20
int fa0/1
switchport mode trunk
exit

router

enable
configure terminal
int fa0/0
no shutdown
int fa0/0.1
encapsulation dot1q 10
ip address 192.168.10.1 255.255.255.0
int fa0/0.2
encapsulation dot1q 20
ip address 192.168.20.1 255.255.255.0
exit

就如上命令

❽ 单臂路由的基本配置,求详细的配置过程

前面配置名字就不说了,在f0/0端口上建立子接口,并分别赋予vlan标记以及设置网关。

❾ 求个思科单臂路由配置教程

写个模拟器的配置,Router的f0/0与switch的1/1相联,switch当二层交换机看,vlan20和vlan30是两个应用vlan,通过Router的F0/0做单臂路由的互访:
Router(config)#interface fastEthernet 0/0
Router(config-if)#no ip address
Router(config-if)#no shutdown
Router(config)#interface fastEthernet 0/0.20
Router(config-subif)#encapsulation dot1q 20
Router(config-subif)#ip address 192.168.20.1 255.255.255.0
Router(config-subif)#no shutdown
Router(config-subif)#exit
Router(config)#interface fastEthernet 0/0.30
Router(config-subif)#encapsulation dot1q 30
Router(config-subif)#ip address 192.168.30.1 255.255.255.0
Router(config-subif)#no shutdown
Router(config-subif)#exit

Switch#vlan database
Switch(vlan)#vlan 20
Switch(vlan)#vlan 30
Switch(vlan)#exit
Switch#config t
Switch(config)#no ip routing
Switch(config)#interface fastEthernet 1/1
Switch(config-if)#switchport mode trunk
Switch(config-if)#switchport trunk encapsulation dot1q
Switch(config-if)#exit
Switch(config)#interface fastEthernet 1/2
Switch(config-if)#switchport access vlan 20
Switch(config-if)#exit
Switch(config)#interface fastEthernet 1/3
Switch(config-if)#switchport access vlan 30
Switch(config-if)#exit

❿ 单臂路由的配置实例

实验设备:一台CISCO路由器(R1),一台三层交换机(S1),两台PC机( pc2和pc3)
PC的配置如下:
pc2的IP:192.168.2.10 网关:192.168.2.1
pc3的IP:192.168.3.10 网关:192.168.3.1
交换机S1的配置如下:
Switch>enable
Switch#vlan database
Switch(vlan)#vlan 2 name test01
VLAN 2 added:
Name: test01
Switch(vlan)#vlan 3 name test02
VLAN 3 added:
Name: test02 →设置好vlan ,这里只简单设置两个。
Switch(vlan)#exit
APPLY completed.
Exiting....
Switch#config
Configuring from terminal, memory, or network [terminal]?
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#interface fa0/2
Switch(config-if)#switchport access vlan 2
Switch(config-if)#exit
Switch(config)#interface fa0/3
Switch(config-if)#switchport access vlan 3
Switch(config-if)#exit
Switch(config)#interface fa0/1
Switch(config-if)#switchport trunk encapsulation dot1q (2960等交换机只支持802.1q协议,这里忽略)
Switch(config-if)#switchport mode trunk
Switch(config-if)#switchport trunk allowed vlan all
Switch(config-if)#exit
Switch(config)#end
%SYS-5-CONFIG_I: Configured from console by console
Switch#write memory
Building configuration...
[OK]
下面来重点,配置单臂路由:
Router>enable
Router#config
Configuring from terminal, memory, or network [terminal]?
Enter configuration commands, one per line. End with CNTL/Z. .................进入全局配置模式
Router(config)#interface fa0/0 ................进入和交换机连接的那个接口
Router(config-if)#no shutdown ................激活该端口
Router(config-if)#exit ……………返回到全局配置模式
Router(config)#interface fa0/0.1 ...........配置 子接口 这是配置单臂路由的关键,这个接口是个 逻辑接口,并不是实际存在的物理接口,但是功能却和物理接口是一样的。
Router(config-subif)#encapsulation dot1q 2 .......为这个接口配置802.1Q协议,最后面的 2 是vlan 号,这也是关键部分
Router(config-subif)#ip address 192.168.2.1 255.255.255.0 .........为该接口划分ip地址。
Router(config-subif)#exit
Router(config)#interface fa0/0.2 .....同样,进入第2个子接口,进行配置
Router(config-subif)#encapsulation dot1q 3 .........配置802.1Q协议
Router(config-subif)#ip address 192.168.3.1 255.255.255.0 ......划分ip地址和子网掩码
Router(config-subif)#end
%SYS-5-CONFIG_I: Configured from console by console ..........完成配置
下面是测试结果:
经过分别对两台机子互相ping的测试,可以发现能够ping通,说明实验成功。
实验手册
实验名称:单臂路由实验
目标:通过一个路由器进行多个VLAN互联
环境:1. 交换机为二层交换机,支持VLAN划分;2. 路由器只有1个Ethernet接口
实施:采用单臂路由,即在路由器上设置多个逻辑子接口,每个子接口对应于一个VLAN。由于物理路由接口只有一个,各子接口的数据在物理链路上传递要进行标记封装。Cisco设备支持ISL和802.1q协议。华为设备只支持802.1q。

阅读全文

与单臂路由简单配置方法思科相关的资料

热点内容
手臂刮汗毛用什么方法 浏览:737
调理肌酐最好的方法如何降 浏览:936
狗风疙瘩最快治疗方法 浏览:800
大蒜治疗金鱼肠炎土方法怎么治疗 浏览:769
江苏高质量考核发展指数计算方法 浏览:917
虫牙土方法怎么治 浏览:291
水胶体敷料使用方法 浏览:829
粉丝的训练方法 浏览:778
铝盖发霉怎么处理方法 浏览:317
做生意都有哪些赚钱的方法 浏览:441
黄金三角手臂锻炼方法 浏览:12
根号15在数轴上的表示方法图片 浏览:913
语音提示器安装方法 浏览:204
c32漏电保护空开连接方法 浏览:367
附件炎有哪些治疗方法 浏览:335
36x198的简便计算方法 浏览:258
高阻计使用方法 浏览:951
水质超标的解决方法 浏览:575
英语大师教学方法 浏览:155
男性眼袋怎么消除简单方法 浏览:907