橋接路由器配置命令是什麼

  通常,可以用路由器把幾個網路串起來的連線方式,路由器設定做橋接bridging的完整的配置命令如下:

  橋接Bridging是指依據OSI網路模型的鏈路層的地址,對網路資料包進行轉發的過程。是工作在osi的第二層的。一般的交換機,網橋就有橋接作用。

  路由器橋接的配置命令:

  router#sh ru

  Building configuration...

  Current configuration:

  !

  version 12.1

  service timestamps debug uptime

  service timestamps log uptime

  no service password-encryption

  !

  hostname router

  !

  enable secret 5 $1$BE0q$hj.WBtIBYppMX3zyfaPbR1

  !

  !

  !

  !

  !

  memory-size iomem 25

  ip subnet-zero

  no ip routing

  !

  !

  !

  !

  interface Serial0

  description 128k DL546267 connect to SZ

  ip address 198.127.18.4 255.255.255.0

  no ip route-cache

  no fair-queue

  bridge-group 1

  !

  interface FastEthernet0

  ip address 198.127.18.3 255.255.255.0

  no ip route-cache

  speed auto

  bridge-group 1

  !

  ip classless

  no ip http server

  !

  bridge 1 protocol ieee bridge 1 route ip

  !

  line con 0

  transport input none

  line aux 0

  line vty 0 4

  password csl

  login

  !

  no scheduler allocate

  end

  交換機本身有一個埠與mac的對映表,通過這些,隔離了衝突域collision,簡單的說就是通過網橋可以把兩個不同的物理區域網連線起來,是一種在鏈路層實現區域網互連的儲存轉發裝置。網橋從一個區域網接收MAC幀,拆封、校對、校驗之後 ,按另一個區域網的格式重新組裝,發往它的物理層。