diff --git "a/\347\216\213\346\226\260\351\233\205/20240511-\344\270\211\345\261\202\344\272\244\346\215\242\346\234\272\345\215\225\350\207\202\350\267\257\347\224\261.md" "b/\347\216\213\346\226\260\351\233\205/20240511-\344\270\211\345\261\202\344\272\244\346\215\242\346\234\272\345\215\225\350\207\202\350\267\257\347\224\261.md" new file mode 100644 index 0000000000000000000000000000000000000000..849c8f0b1a7776f60cfca7805343ef3a0d2de075 --- /dev/null +++ "b/\347\216\213\346\226\260\351\233\205/20240511-\344\270\211\345\261\202\344\272\244\346\215\242\346\234\272\345\215\225\350\207\202\350\267\257\347\224\261.md" @@ -0,0 +1,40 @@ +![Alt text](./imgs/三层单臂路由.png) + +### 二层交换机 +```js +Switch>en +Switch#conf t + +Switch(config)#vlan 10 +Switch(config-vlan)#vlan 20 + +Switch(config-vlan)#int f0/1 +Switch(config-if)#sw ac v 10 + +Switch(config-if)#int f0/2 +Switch(config-if)#sw ac v 20 + +Switch(config-if)#int f0/3 +Switch(config-if)#sw mo tr +``` + +### 三层交换机 + +```js +Switch>en +Switch#conf t + +Switch(config)#vlan 10 +Switch(config-vlan)#vlan 20 + +Switch(config-vlan)#int f0/2 +Switch(config-if)#sw ac vlan 10 + +Switch(config-if)#int vlan 10 +Switch(config-if)#ip address 192.168.1.254 255.255.255.0 +Switch(config-if)#int vlan 20 +Switch(config-if)#ip address 192.168.2.254 255.255.255.0 + +Switch(config-if)#exit +Switch(config)#ip routing +``` \ No newline at end of file diff --git "a/\347\216\213\346\226\260\351\233\205/imgs/\344\270\211\345\261\202\345\215\225\350\207\202\350\267\257\347\224\261.png" "b/\347\216\213\346\226\260\351\233\205/imgs/\344\270\211\345\261\202\345\215\225\350\207\202\350\267\257\347\224\261.png" new file mode 100644 index 0000000000000000000000000000000000000000..3476fab30e5f41c89fe77afc2fba7640de543cd0 Binary files /dev/null and "b/\347\216\213\346\226\260\351\233\205/imgs/\344\270\211\345\261\202\345\215\225\350\207\202\350\267\257\347\224\261.png" differ