三层交换机的配置 三层交换机配置步骤

\u8bf7\u95eeH3C \u4e09\u5c42\u4ea4\u6362\u673a\u7684 NAT \u914d\u7f6e

H3C\u4e09\u5c42\u4ea4\u6362\u673a\u7684NAT\u914d\u7f6e\u6b65\u9aa4\u5982\u4e0b\uff1a
1\uff0c\u7b2c3\u5c42\u4ea4\u6362\u673a\u9ed8\u8ba4\u4f7f\u7528\u8def\u7531\u529f\u80fd\u3002\u8fd9\u8981\u6c42\u5728\u6211\u4eec\u7684\u624b\u673a\u4e0a\u542f\u7528\u7b2c3\u5c42\u4ea4\u6362\u673a\u7684\u8def\u7531\u529f\u80fd\u3002

2\uff0c\u542f\u7528\u8def\u7531\u529f\u80fd\u540e\uff0c\u6211\u4eec\u5f00\u59cb\u914d\u7f6e\u7b2c3\u5c42\u4ea4\u6362\u673a\u8def\u7531\u3002

3\uff0c\u6d4b\u8bd5\u914d\u7f6e\uff0c\u9996\u5148\u6d4b\u8bd5\u6240\u6709\u7aef\u53e3\u72b6\u6001\u548cip\u5730\u5740\u3002

4\uff0c\u4ec5\u67e5\u770b\u7aef\u53e3F0 / 1\u7684\u72b6\u6001\u3002

5\uff0c\u5c06\u8ba1\u7b97\u673aip\u8bbe\u7f6e\u4e3a192.168.1.2\uff0c\u5e76\u5c06\u4e09\u5c42\u4ea4\u6362\u673a\u8bbe\u7f6e\u5728\u540c\u4e00\u7f51\u6bb5\uff0c\u5e76\u5c06\u8ba1\u7b97\u673a\u7f51\u5173\u8bbe\u7f6e\u4e3a\u4e09\u5c42\u4ea4\u6362\u673aF0 / 1\u63a5\u53e3\u7684ip\u5730\u5740\u3002

6\uff0c\u7528\u8ba1\u7b97\u673a\u5bf9\u7b2c3\u5c42\u4ea4\u6362\u673a\u7684\u5730\u5740\u8fdb\u884cping\u64cd\u4f5c\uff0c\u7136\u540e\u6210\u529fping\u901a\u3002

\u4e09\u5c42\u4ea4\u6362\u673a\u914d\u7f6e\u6b65\u9aa4\u5206\u4e3a5\u4e2a\u6b65\u9aa4\uff0c\u5982\u4e0b\uff1a
1\u3001\u4e3a\u4e09\u5c42\u4ea4\u6362\u673a\u5212\u5206\u7ba1\u7406VLAN\uff0c\u5e76\u63cf\u8ff0\uff0c\u5982\u56fe\uff0c\u5212\u5206\u4e86vlan 10\uff0c\u5e76\u63cf\u8ff0\u4e3a\u7ba1\u7406vlan\u3002


2\u3001\u5c06vlan 10\u7ba1\u7406vlan\u914d\u7f6e\u6210\u4ea4\u6362\u673a\u7684\u7ba1\u7406\u5730\u5740\u3002


3\u3001\u5f00\u542f\u8fdc\u7a0b\u767b\u5f55\u8fde\u63a5\u3002


4\u3001\u5212\u5206\u4e1a\u52a1vlan\uff0c\u5e76\u4e3a\u5176\u914d\u7f6e\u4e1a\u52a1\u7f51\u5173\u3002


5\u3001\u5728\u6307\u5b9a\u7aef\u53e3\u52a0\u5165\u6240\u521b\u5efa\u7684vlan\u3002


6\u3001\u4e3a\u4e09\u5c42\u4ea4\u6362\u673a\u914d\u7f6e\u9759\u6001\u8def\u7531\uff0c\u4e0e\u4e0a\u7ea7\u7f51\u7edc\u4e92\u901a\u3002

Switch>
Switch>
Switch>
Switch>en
Switch>enable
Switch#conf
Switch#configure ter
Switch#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#ip routi
Switch(config)#ip routing
Switch(config)#int
Switch(config)#interface f
Switch(config)#interface fastEthernet 0/24
Switch(config-if)#no sw
Switch(config-if)#no switchport
Switch(config-if)#ip ad
Switch(config-if)#ip address 172.16.50.1 255.255.255.0
Switch(config-if)#no sh
Switch(config-if)#no shutdown
Switch(config-if)#
%SYS-5-CONFIG_I: Configured from console by console
Switch#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#int
Switch(config)#interface f
Switch(config)#interface fastEthernet 0/1
Switch(config-if)#no sw
Switch(config-if)#no switchport
Switch(config-if)#ip ad
Switch(config-if)#ip address 172.16.10.1 255.255.255.0
Switch(config-if)#no sh
Switch(config-if)#no shutdown
Switch(config-if)#

我使用的方法是物理端口法,还有一个叫SVL
Switch>
Switch>
Switch>
Switch>en
Switch>enable
Switch#conf
Switch#configure ter
Switch#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#vl
Switch(config)#vlan 50
Switch(config-vlan)#
%SYS-5-CONFIG_I: Configured from console by console
Switch#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#vlan 10
Switch(config-vlan)#
%SYS-5-CONFIG_I: Configured from console by console
Switch#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#int
Switch(config)#interface f
Switch(config)#interface fastEthernet 0/24
Switch(config-if)#sw
Switch(config-if)#switchport ac
Switch(config-if)#switchport access vl
Switch(config-if)#switchport access vlan 50
Switch(config-if)#
%SYS-5-CONFIG_I: Configured from console by console
Switch#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#int
Switch(config)#interface f
Switch(config)#interface fastEthernet 0/1
Switch(config-if)#sw
Switch(config-if)#switchport ac
Switch(config-if)#switchport access vl
Switch(config-if)#switchport access vlan 10
Switch(config-if)#
%SYS-5-CONFIG_I: Configured from console by console
Switch#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#int
Switch(config)#interface vl
Switch(config)#interface vlan 50

%LINK-5-CHANGED: Interface Vlan50, changed state to upSwitch(config-if)#ip ad
Switch(config-if)#ip address 172.16.50.1 255.255.255.0
Switch(config-if)#nos h
Switch(config-if)#nos h
^
% Invalid input detected at '^' marker.

Switch(config-if)#
%SYS-5-CONFIG_I: Configured from console by console
Switch#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#interface vlan 50
Switch(config-if)#no sh
Switch(config-if)#no shutdown
Switch(config-if)#
%SYS-5-CONFIG_I: Configured from console by console
Switch#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#int
Switch(config)#interface f
Switch(config)#interface vl
Switch(config)#interface vlan 10

%LINK-5-CHANGED: Interface Vlan10, changed state to upSwitch(config-if)#ip ad
Switch(config-if)#ip address 172.16.10.1 255.255.255.0
Switch(config-if)#no s
Switch(config-if)#no shutdown
Switch(config-if)#

三层和路由设备连接就这两种方法,
而后的话就用路由协议了,
在使用在三层上用静态路由的时候,有个注意事项,使用的是下一跳地址,如
Switch(config)#ip route 172.16.60.0 255.255.255.0 172.16.50.2
在使用动态协议的时候,大体上一样,

说明你要实现什么?

  • 涓夊眰浜ゆ崲鏈鍒嗕笁涓猇LAN涔嬪悗,鎬庝箞杩炴帴璺敱鍣?杩炴帴鍙f庝箞璁剧疆?
    绛旓細1銆佷氦鎹㈡満閰嶇疆锛氾紙1)鍦ㄤ氦鎹㈡満涓婂垎鍒垝鍒嗕笁涓猇LAN锛屽vlan 10锛寁lan 20锛寁lan 30銆傦紙2锛夎繘鍏ヤ氦鎹㈡満鐨勪笂鑱斿彛锛屽interface GigabitEthernet 0/0/1锛岃缃垚trunk妯″紡銆傦紙3锛変笂鑱斿彛鍔犲叆vlan 10锛寁lan 20锛寁lan 30銆2銆佽矾鐢卞櫒閰嶇疆锛氾紙1锛夎繘鍏ヨ矾鐢卞櫒杩炴帴浜ゆ崲鏈虹殑绔彛鐨勫瓙鎺ュ彛锛屽interface GigabitEthernet...
  • 涓夊眰浜ゆ崲鏈璺敱閰嶇疆(闈欐佽矾鐢)
    绛旓細涓夊眰浜ゆ崲鏈璺敱閰嶇疆锛歩nterface Vlanif2 //姝や负PC1鐨勭綉鍏 ip address 192.168.1.254 255.255.255.0 interface Vlanif12 //姝や负浜ゆ崲鏈1鍜2鐨勭洿杩炶矾鐢 ip address 1.1.1.1 255.255.255.252 interface GigabitEthernet0/0/1 port link-type access port default vlan 2 interface Gigabit...
  • 涓夊眰浜ゆ崲鏈鎬庢牱閰嶇疆vlan,濡備綍ping閫氫簩灞備氦鎹㈡満?
    绛旓細浣犲ソ锛1銆侀鍏堣涓涓嬩綘鐨勮璁★紝鏄湪浜屽眰浜ゆ崲鏈轰笂璁剧疆vlan锛岄氳繃trunk鍙i忓叆鍒颁笁灞備氦鎹㈡満锛屽苟鍦ㄤ笁灞備氦鎹笂缁堢粨銆傝繖涓ゅ彴浜ゆ崲鏈轰笅闈㈢殑鐢佃剳閮藉湪涓嶅悓鐨勭綉鍏充笅锛岃屼笖閮戒娇鐢ㄤ笉鍚岀殑vlan闅旂锛屼箣鍓嶆槸涓嶈兘ping寰楅氱殑銆 瑕乸ing寰楄兘锛屾槸闇瑕佸湪涓夊眰浜ゆ崲鏈轰笂閰嶇疆璺敱鐨勩2銆佷氦鎹㈡満涓庤矾鐢卞櫒鐨勪簰鑱旂鍙h閰嶇疆鎴恡runk...
  • 璇烽棶鍩烘湰鎬濈涓夊眰浜ゆ崲鏈洪厤缃鍛戒护鏈夊摢浜 鎬濈涓夊眰浜ゆ崲鏈洪厤缃懡浠や粙缁峗鐧 ...
    绛旓細鍩烘湰鎬濈涓夊眰浜ゆ崲鏈洪厤缃懡浠 1. 浜ゆ崲鏈烘敮鎸佺殑鍛戒护锛 浜ゆ崲鏈哄熀鏈姸鎬侊細switch: ;ROM鐘舵侊紝 璺敱鍣ㄦ槸rommon>hostname> ;鐢ㄦ埛妯″紡hostname# ;鐗规潈妯″紡hostname(config)# ;鍏ㄥ眬閰嶇疆妯″紡hostname(config-if)# ;鎺ュ彛鐘舵佷氦鎹㈡満鍙d护璁剧疆锛歴witch>enable ;杩涘叆鐗规潈妯″紡switch#config terminal ;杩涘叆鍏ㄥ眬閰嶇疆妯″紡sw...
  • 涓夊眰浜ゆ崲鏈洪厤缃姝ラ
    绛旓細涓夊眰浜ゆ崲鏈洪厤缃細Enable //杩涘叆绉佹湁妯″紡 Configure terminal //杩涘叆鍏ㄥ眬妯″紡 service password-encryption //瀵瑰瘑鐮佽繘琛屽姞瀵 hostname Catalyst 3550-12T1 //缁欎笁灞備氦鎹㈡満瀹氫箟鍚嶇О enable password 123456. //enable瀵嗙爜 Enable secret 654321 //enable鐨勫姞瀵嗗瘑鐮(搴旇鏄贡鐮佽屼笉鏄654321杩欐牱)Ip subnet-zero...
  • 涓夊眰浜ゆ崲鏈洪厤缃姝ラ
    绛旓細涓夊眰浜ゆ崲鏈洪厤缃姝ラ鍒嗕负5涓楠わ紝濡備笅锛1銆佷负涓夊眰浜ゆ崲鏈哄垝鍒嗙鐞哣LAN锛屽苟鎻忚堪锛屽鍥撅紝鍒掑垎浜唙lan 10锛屽苟鎻忚堪涓虹鐞唙lan銆2銆佸皢vlan 10绠$悊vlan閰嶇疆鎴浜ゆ崲鏈虹殑绠$悊鍦板潃銆3銆佸紑鍚繙绋嬬櫥褰曡繛鎺ャ4銆佸垝鍒嗕笟鍔lan锛屽苟涓哄叾閰嶇疆涓氬姟缃戝叧銆5銆佸湪鎸囧畾绔彛鍔犲叆鎵鍒涘缓鐨剉lan銆6銆佷负涓夊眰浜ゆ崲鏈洪厤缃潤鎬佽矾鐢憋紝涓庝笂绾...
  • 鍩烘湰鎬濈涓夊眰浜ゆ崲鏈洪厤缃鍛戒护鏈夊摢浜 鎬濈涓夊眰浜ゆ崲鏈洪厤缃懡浠や粙缁峗鐧惧害...
    绛旓細娆蹭簡瑙f洿澶氭垨绔嬪嵆涓嬭浇锛岃璁块棶https://sogou.37moyu.com/ 鍩烘湰鎬濈涓夊眰浜ゆ崲鏈洪厤缃鍛戒护 1. 浜ゆ崲鏈烘敮鎸佺殑鍛戒护锛 浜ゆ崲鏈哄熀鏈姸鎬侊細switch: ;ROM鐘舵侊紝 璺敱鍣ㄦ槸rommon>hostname> ;鐢ㄦ埛妯″紡hostname# ;鐗规潈妯″紡hostname(config)# ;鍏ㄥ眬閰嶇疆妯″紡hostname(config-if)# ;鎺ュ彛鐘舵佷氦鎹㈡満鍙d护璁剧疆锛歴witch>...
  • 涓夊眰浜ゆ崲鏈鎬庝箞閰峯spf
    绛旓細1銆侀鍏堥渶瑕佹墦寮妯℃嫙鍣ㄨ繘鍏ラ厤缃幆澧冦2銆佹墦en杩涘叆鐗规潈妯″紡鐒跺悗鍐峜onf t杩涘叆鍏ㄥ眬閰嶇疆妯″紡銆3銆佽繘鍏ュ叏灞閰嶇疆妯″紡浠ュ悗int fa 0/0 缁欎笉鍚岀殑绔彛閰嶇疆IP 鍦板潃锛屽鏋滄槸鍦涓夊眰浜ゆ崲鏈洪厤缃ipaddre鐨勮瘽锛岄渶瑕佽繘鍏ョ鍙d互鍚庢墠鑳藉閰嶇疆銆4銆侀厤缃甀P 鍦板潃浠ュ悗瑕佸紑鍚鍙o紝鎵搉o shutdown灏卞彲浠ヤ簡 5銆佺劧鍚巈xit閫鍥炲叏灞閰嶇疆...
  • 鎬濈涓夊眰浜ゆ崲鏈璺敱鍔熻兘閰嶇疆鏁欑▼
    绛旓細| 鎬濈3550涓夊眰浜ゆ崲鏈 | --- --- --- 50.1.1.1 (23鍙) 60.1.1.1(24鍙)|| || || || 50.1.1.2 60.1.1.2 (pc1) (pc2)閰嶇疆23鍙o細Switch#enable Switch#configure terminal Switch(config)#interface fastEthernet 0/23 Switch(config)ip addr 50.1.1.1 255.255.255.0 Sw...
  • 鍗庝负涓夊眰浜ゆ崲鏈虹殑閰嶇疆鏂规硶(浠涔堟槸涓夊眰浜ゆ崲鏈哄強鍏跺姛鑳戒粙缁)
    绛旓細姝ラ濡備笅锛氬湪浜ゆ崲鏈涓坊鍔燰LAN 10銆傜郴缁熻鍥 vlan10銆怮uidway-vlan10銆戦鍑築.灏唙lan 10鐨処P鍦板潃璁剧疆涓192.168.66.66锛屽皢缃戝叧璁剧疆涓255.255.255.0銆傘愰瓉鍦板銆戞帴鍙lanif10銆怮uidway-vlanif 10銆慖P鍦板潃192.168.66.66 255.255.255.0閫鍑篶銆佸湪浜ゆ崲鏈轰笂璁剧疆绗20涓鍙fā寮忎负鎺ュ叆 int鍗冨厗浠ュお缃0/...
  • 扩展阅读:三层交换机拓扑图配置 ... 家用三层交换机推荐 ... 三层交换机配置vlan ... 思科三层交换机配置 ... 二层三层交换机图解 ... 三层交换机配置软件 ... 二层交换机接口配置ip ... 华为三层交换机配置ip ... 华为三层交换机路由配置 ...

    本站交流只代表网友个人观点,与本站立场无关
    欢迎反馈与建议,请联系电邮
    2024© 车视网