zoukankan      html  css  js  c++  java
  • 单臂路由

    交换机:undo terminal m
    Info: Current terminal monitor is off.
    system-view
    Enter system view, return user view with Ctrl+Z.
    [Huawei]sysname 1
    [1]user-interface console 0
    [1-ui-console0]idle-timeout 0 0
    [1-ui-console0]quit
    [1]vlan batch 10 20
    Info: This operation may take a few seconds. Please wait for a moment…done.
    [1]int e0/0/1
    [1-Ethernet0/0/1]port hybrid pvid vlan 10
    [1-Ethernet0/0/1]port hybrid untagged vlan 10
    [1-Ethernet0/0/1]int e0/0/2
    [1-Ethernet0/0/2]port hybrid pvid vlan 20
    [1-Ethernet0/0/2]port hybrid untagged vlan 20
    [1-Ethernet0/0/2]int g0/0/1
    [1-GigabitEthernet0/0/1]port link-type trunk
    [1-GigabitEthernet0/0/1]port trunk allow-pass vlan 10 20
    路由器
    undo terminal monitor
    Info: Current terminal monitor is off.
    system-view
    Enter system view, return user view with Ctrl+Z. 
    [Huawei]sysname 1
    [1]user-interface console 0 
    [1-ui-console0]idle-timeout 0 0
    [1-ui-console0]quit
    [1]int g0/0/0 
    [1-GigabitEthernet0/0/0]undo shutdown
    Info: Interface GigabitEthernet0/0/0 is not shutdown.
    [1-GigabitEthernet0/0/0]int g0/0/0.1
    [1-GigabitEthernet0/0/0.1]vlan-type dot1q 10 default
    [1-GigabitEthernet0/0/0.1]ip add 192.168.1.1 24
    [1-GigabitEthernet0/0/0.1]int g0/0/0.2
    [1-GigabitEthernet0/0/0.2]vlan-type dot1q 20 default
    [1-GigabitEthernet0/0/0.2]ip add 192.168.2.1 24

  • 相关阅读:
    浅析跨域请求
    python虚拟环境--virtualenv
    centos7下使用yum安装pip
    centos下python安装与虚拟环境配置
    ES6基础语法
    CCI_chapter 19 Moderate
    CCI_chapter 16 Low level
    CCI_chapter 13C++
    CCI_chapter 8 Recurision
    LeetCode_Generate Parentheses
  • 原文地址:https://www.cnblogs.com/sobk/p/14009403.html
Copyright © 2011-2022 走看看