公告版位

目前分類:Switch (12)

瀏覽方式: 標題列表 簡短摘要

[HP 1920G Switch] loopback-detection enable
[HP 1920G Switch] loopback-detection multi-port-mode enable
[HP 1920G Switch] loopback-detection interval-time 5

dreamtails 發表在 痞客邦 留言(0) 人氣()

<HP 1920G Switch> _cmdline-mode on
Please input password: Jinhua1920unauthorized
<HP 1920G Switch> system-view 
[HP 1920G Switch] local-user admin
[HP 1920G Switch-luser-admin] password simple <MyPassword>

dreamtails 發表在 痞客邦 留言(0) 人氣()

<HP 1920G Switch> system-view
System View: return to User View with Ctrl+Z.
[HP 1920G Switch] snmp-agent sys-info version all
[HP 1920G Switch] lldp enable

dreamtails 發表在 痞客邦 留言(0) 人氣()

******************************************************************************
* Copyright (c) 2010-2015 Hewlett-Packard Development Company, L.P. *
* Without the owner's prior written consent, *
* no decompiling or reverse-engineering shall be allowed. *
******************************************************************************

Login authentication

Username: admin
Password:

<HP 1920G Switch_cmdline-mode on
All commands can be displayed and executed. Continue? [Y/N] 
Y

 Default password is below, 
Please input password: Jinhua1920unauthorized

y wrong use, please carefully use it with our engineer's direction.

dreamtails 發表在 痞客邦 留言(0) 人氣()

Environment: N2048, N3048

Secnario: 我想設定第48 port為Trunk port(帶VLAN ID為1011 and 1012的Tags)

Solution: 在Switch加上以下這幾行

# enable
# configure
# vlan 1011,1012
# exit
# interface vlan 1011
# ip address 10.11.0.253 255.255.0.0
# exit
# interface vlan 1012
# ip address 10.12.0.253 255.255.0.0
# exit
interface gigabitethernet 1/0/48
# switchport mode trunk
# switchport trunk allowed vlan 1011,1012

dreamtails 發表在 痞客邦 留言(0) 人氣()

Environment: N2048, N3048

Secnario: 我想設定第1 port為Access port(帶VLAN ID為1011的Tags)

Solution: 在Switch加上以下這幾行

# enable
# configure
# vlan 1011
# exit
# interface vlan 1011
# ip address 10.11.0.253 255.255.0.0
# exit
# interface gigabitethernet 1/0/1
# switchport access vlan 1011

dreamtails 發表在 痞客邦 留言(0) 人氣()

Environment: N3048

Secnario: 我想設定VLAN 1011與1012這兩個網段可以拿到VLAN 192網段192.168.1.1這台DHCP server發的IP

Solution: 在Switch加上以下這幾行,主要是設定要DHCP relay的VLAN與DHCP server的IP

# enable
# configure
# ip helper-address 192.168.1.1 dhcp
# dhcp l2relay vlan 1011,1012

dreamtails 發表在 痞客邦 留言(0) 人氣()

Environment: N2048, N3048

Secnario: 所有接在N2048與N3048的機器都能互通,唯獨與Switch不同網段的機器連不到Switch(例如: 10.10.10.10要連到switch ip: 192.168.0.252)

Solution: 在Switch上加上以下這一行

# ip default-gateway 192.168.0.254

dreamtails 發表在 痞客邦 留言(0) 人氣()

The Dell N3048 has to config below,

    1. add "VLAN interface IP"

    2. add "static route"

    3. add command "ip routing"

 

The Juniper SRX240 has to config below,

    - add a "interface IP", if the SRX240 is routing to N3048. 

dreamtails 發表在 痞客邦 留言(0) 人氣()

Environment:

VLAN 1:

        VLAN 1 interface IP: 10.10.0.254/16

        Laptop A IP: 10.10.1.1/16

 

VLAN 2:

        VLAN 2 interface IP: 192.168.0.254/16

        Laptop B IP: 192.168.1.1/16

dreamtails 發表在 痞客邦 留言(0) 人氣()

前提: switch的LLDP與SNMP皆有開啟

# snmpwalk -v2c -c public 192.168.0.21 1.0.8802.1.1.2.1.4.2.1.3

dreamtails 發表在 痞客邦 留言(0) 人氣()

ALPHA AGS-24X switch開關ports的方法:
$ config ports 1 state enable
$ config ports 1 state disable

ALPHA AGS-24X switch看ports狀態的方法:
$ show ports 1
$ sh ports 1

dreamtails 發表在 痞客邦 留言(0) 人氣()