米葫芦网

CISCO4908的配置实例

热度:13℃ 发布时间:2023-11-16 19:33:49

CISCO 4908G配置:
sh run
Building configuration...
Current configuration:
!
version 12.0
no service pad
service timestamps debug uptime
service timestamps log uptime
no service passWord-encryption
!
hostname Router
!
enable password cisco 进去特权模式的密码
!
username cisco password 0 cisco 远程telnet治理登陆的用户名和密码
ip subnet-zero
bridge irb 桥接路由
!
!
!
interface Port-channel1 建立一个快速通道
no ip address
no ip directed-broadcast
hold-queue 300 in
!
interface Port-channel1.1 设置快速通道的vlan1接口,子端口1
encapsulation dot1Q 1 native 封装802.1q协议,设置为vlan 1
no ip redirects
no ip directed-broadcast
bridge-group 1 桥接本交换机所有的vlan 1
!
interface Port-channel1.2 设置快速通道vlan 2接口,子端口2
encapsulation dot1Q 2 封装802.1q协议,设置为vlan 2
no ip redirects
no ip directed-broadcast
bridge-group 2 桥接本交换机的 vlan 2
!
interface Port-channel1.3
encapsulation dot1Q 3
no ip redirects
no ip directed-broadcast
bridge-group 3
!
interface Port-channel1.4
encapsulation dot1Q 4
no ip redirects
no ip directed-broadcast
bridge-group 4
!
interface Port-channel1.5
encapsulation dot1Q 5
no ip redirects
no ip directed-broadcast
bridge-group 5
!
interface Port-channel1.6
encapsulation dot1Q 6
no ip redirects
no ip directed-broadcast
bridge-group 6
!
interface Port-channel1.10
encapsulation dot1Q 10
no ip redirects
no ip directed-broadcast
bridge-group 10
!
interface GigabitEthernet1
no ip address
no ip directed-broadcast
!
interface GigabitEthernet1.1 设置第一个千兆口的第一个子端口
encapsulation dot1Q 1 native 使第一个子端口划分为vlan 1中
no ip redirects
no ip directed-broadcast
bridge-group 1
!
interface GigabitEthernet1.2 设置第一个千兆口的第二个子端口
encapsulation dot1Q 2 把第二个子端口划分为 vlan 2中(注:第2个子端口必须划分到vlan 2,不能划分到其他vlan否则,就无效)
no ip redirects
no ip directed-broadcast
bridge-group 2
!
interface GigabitEthernet1.3
encapsulation dot1Q 3
no ip redirects
no ip directed-broadcast
bridge-group 3
!
interface GigabitEthernet1.4
encapsulation dot1Q 4
no ip redirects
no ip directed-broadcast
bridge-group 4
!
interface GigabitEthernet1.5
encapsulation dot1Q 5
no ip redirects
no ip directed-broadcast
bridge-group 5
!
interface GigabitEthernet1.6
encapsulation dot1Q 6
no ip redirects
no ip directed-broadcast
bridge-group 6
!
interface GigabitEthernet1.10
encapsulation dot1Q 10
no ip redirects
no ip directed-broadcast
bridge-group 10
!
interface GigabitEthernet2
no ip address
no ip directed-broadcast
!
interface GigabitEthernet2.1
encapsulation dot1Q 1 native
no ip redirects
no ip directed-broadcast
bridge-group 1
!
interface GigabitEthernet2.2
encapsulation dot1Q 2
no ip redirects
no ip directed-broadcast
bridge-group 2
!
interface GigabitEthernet2.3
encapsulation dot1Q 3
no ip redirects
no ip directed-broadcast
bridge-group 3
!
interface GigabitEthernet2.4
encapsulation dot1Q 4
no ip redirects
no ip directed-broadcast
bridge-group 4
!
interface GigabitEthernet2.5
encapsulation dot1Q 5
no ip redirects
no ip directed-broadcast
bridge-group 5
!
interface GigabitEthernet2.6
encapsulation dot1Q 6
no ip redirects
no ip directed-broadcast
bridge-group 6
!
interface GigabitEthernet2.10
encapsulation dot1Q 10
no ip redirects
no ip directed-broadcast
bridge-group 10
!
interface GigabitEthernet3
no ip address
no ip directed-broadcast
!
interface GigabitEthernet3.1
encapsulation dot1Q 1 native
no ip redirects
no ip directed-broadcast
bridge-group 1
!
interface GigabitEthernet3.2
encapsulation dot1Q 2
no ip redirects
no ip directed-broadcast
bridge-group 2
!
interface GigabitEthernet3.3
encapsulation dot1Q 3
no ip redirects
no ip directed-broadcast
bridge-group 3
!
interface GigabitEthernet3.4
encapsulation dot1Q 4
no ip redirects
no ip directed-broadcast
bridge-group 4
!
interface GigabitEthernet3.5
encapsulation dot1Q 5
no ip redirects
no ip directed-broadcast
bridge-group 5
!
interface GigabitEthernet3.6
encapsulation dot1Q 6
no ip redirects
no ip directed-broadcast
bridge-group 6
!
interface GigabitEthernet3.10
encapsulation dot1Q 10
no ip redirects
no ip directed-broadcast
bridge-group 10
!
interface GigabitEthernet4
no ip address
no ip directed-broadcast
!
interface GigabitEthernet4.1
encapsulation dot1Q 1 native
no ip redirects
no ip directed-broadcast
bridge-group 1
!
interface GigabitEthernet4.2
encapsulation dot1Q 2
no ip redirects
no ip directed-broadcast
bridge-group 2
!
interface GigabitEthernet4.3
encapsulation dot1Q 3
no ip redirects
no ip directed-broadcast
bridge-group 3
!
interface GigabitEthernet4.4
encapsulation dot1Q 4
no ip redirects
no ip directed-broadcast
bridge-group 4
!
interface GigabitEthernet4.5
encapsulation dot1Q 5
no ip redirects
no ip directed-broadcast
bridge-group 5
!
interface GigabitEthernet4.6
encapsulation dot1Q 6
no ip redirects
no ip directed-broadcast
bridge-group 6
!
interface GigabitEthernet4.10
encapsulation dot1Q 10
no ip redirects
no ip directed-broadcast
bridge-group 10
!
interface GigabitEthernet5
no ip address
no ip directed-broadcast
!
interface GigabitEthernet5.1
encapsulation dot1Q 1 native
no ip redirects
no ip directed-broadcast
bridge-group 1
!
interface GigabitEthernet5.2
encapsulation dot1Q 2
no ip redirects
no ip directed-broadcast
bridge-group 2
!
interface GigabitEthernet5.3
encapsulation dot1Q 3
no ip redirects
no ip directed-broadcast
bridge-group 3
!
interface GigabitEthernet5.4
encapsulation dot1Q 4
no ip redirects
no ip directed-broadcast
bridge-group 4
!
interface GigabitEthernet5.5
encapsulation dot1Q 5
no ip redirects
no ip directed-broadcast
bridge-group 5
!
interface GigabitEthernet5.6
encapsulation dot1Q 6
no ip redirects
no ip directed-broadcast
bridge-group 6
!
interface GigabitEthernet5.10
encapsulation dot1Q 10
no ip redirects
no ip directed-broadcast
bridge-group 10
!
interface GigabitEthernet6
no ip address
no ip directed-broadcast
channel-group 1
!
interface GigabitEthernet7
no ip address
no ip directed-broadcast
channel-group 1
!
interface GigabitEthernet8
no ip address
no ip directed-broadcast
!
interface GigabitEthernet8.1
encapsulation dot1Q 1 native
no ip redirects
no ip directed-broadcast
bridge-group 1
!
interface GigabitEthernet8.2
encapsulation dot1Q 2
no ip redirects
no ip directed-broadcast
bridge-group 2
!
interface GigabitEthernet8.3
encapsulation dot1Q 3
no ip redirects
no ip directed-broadcast
bridge-group 3
!
interface GigabitEthernet8.4
encapsulation dot1Q 4
no ip redirects
no ip directed-broadcast
bridge-group 4
!
interface GigabitEthernet8.5
encapsulation dot1Q 5
no ip redirects
no ip directed-broadcast
bridge-group 5
!
interface GigabitEthernet8.6
encapsulation dot1Q 6
no ip redirects
no ip directed-broadcast
bridge-group 6
!
interface GigabitEthernet8.10
encapsulation dot1Q 10
no ip redirects
no ip directed-broadcast
bridge-group 10
!
interface BVI10 (远程治理登陆ip地址)
ip address 192.168.1.251 255.255.255.0
no ip directed-broadcast
!
ip classless
!
bridge 1 protocol ieee 配置桥接协议
bridge 2 protocol ieee
bridge 3 protocol ieee
bridge 4 protocol ieee
bridge 5 protocol ieee
bridge 6 protocol ieee
bridge 10 protocol ieee
bridge 10 route ip
!
line con 0
transport input none
line aux 0
line vty 0 4
password cisco
login local
!
end
假如,6509上面增加新的vlan 比如:增加 vlan 20,则在4908g上需要增加的配置的命令是
在每个千兆口上和快速通道口上划分一个新的子端口,
interface GigabitEthernet1.20
encapsulation dot1Q 20
bridge-group 20
每个端口都参照这样配置。
在router(config)#状态下,加入以下命令:
bridge 20 protocol ieee
按照这种方式就可以增加vlan
cisco 4908g-L3 三层交换机,每个端口均支持三层交换! 第三层交换12 Mpps为布线室和数据中心提供高性能、中等密度的、10/100/1000M以太网模块交换平台。

网友评论
评论
发 布

更多软件教程
  • 软件教程推荐
更多+
Greenfoot设置中文的方法

Greenfoot设置中文的方法

Greenfoot是一款简单易用的Java开发环境,该软件界面清爽简约,既可以作为一个开发框使用,也能够作为集成开发环境使用,操作起来十分简单。这款软件支持多种语言,但是默认的语言是英文,因此将该软件下载到电脑上的时候,会发现软件的界面语言是英文版本的,这对于英语基础较差的朋友来说,使用这款软件就会...

07-05

Egret UI Editor修改快捷键的方法

Egret UI Editor修改快捷键的方法

Egret UI Editor是一款开源的2D游戏开发代码编辑软件,其主要功能是针对Egret项目中的Exml皮肤文件进行可视化编辑,功能十分强大。我们在使用这款软件的过程中,可以将一些常用操作设置快捷键,这样就可以简化编程,从而提高代码编辑的工作效率。但是这款软件在日常生活中使用得不多,并且专业性...

07-05

KittenCode新建项目的方法

KittenCode新建项目的方法

KittenCode是一款十分专业的编程软件,该软件给用户提供了可视化的操作界面,支持Python语言的编程开发以及第三方库管理,并且提供了很多实用的工具,功能十分强大。我们在使用这款软件进行编程开发的过程中,最基本、最常做的操作就是新建项目,因此我们很有必要掌握新建项目的方法。但是这款软件的专业性...

07-05

Thonny设置中文的方法

Thonny设置中文的方法

Thonny是一款十分专业的Python编辑软件,该软件界面清爽简单,给用户提供了丰富的编程工具,具备代码补全、语法错误显示等功能,非常的适合新手使用。该软件还支持多种语言,所以在下载这款软件的时候,有时候下载到电脑中的软件是英文版本的,这对于英语基础较差的小伙伴来说,使用这款软件就会变得十分困难,...

07-05

最新软件下载