科技行者

行者学院 转型私董会 科技行者专题报道 网红大战科技行者

知识库

知识库 安全导航

至顶网网络频道CISCO 4908的配置实例

CISCO 4908的配置实例

  • 扫一扫
    分享文章到微信

  • 扫一扫
    关注官方公众号
    至顶头条

CISCO 4908的配置实例

作者:中国IT实验室 2007年8月15日

关键字: :路由器 路由器设置 路由器配置 路由器基础 路由协议 CISCO

  • 评论
  • 分享微博
  • 分享邮件

  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

    • 评论
    • 分享微博
    • 分享邮件
    邮件订阅

    如果您非常迫切的想了解IT领域最新产品与技术信息,那么订阅至顶网技术邮件将是您的最佳途径之一。

    重磅专题
    往期文章
    最新文章