Showing posts with label aruba. Show all posts
Showing posts with label aruba. Show all posts

Friday, January 5, 2024

H3C/Comware Switch : Configure HOSTNAME, VLAN, IP and TRUNK

1.Configure the host name

<switch>system-view
[switch]sysname H3C 

2.Create VLAN

<switch>system-view
[switch]vlan 100

3.Delete VLAN

<switch>system-view
[switch]undo vlan 100

4.Add IP to VLAN Interface for management

<switch>system-view
[switch]interface Vlan-interface 100
[switch-Vlan-interface100]ip address 192.168.0.100 255.255.255.0
[switch-Vlan-interface100]display interface Vlan-interface100

Vlan-interface100 current state: UP
Line protocol current state: UP
Description: Vlan-interface100 Interface
The Maximum Transmit Unit is 1500
Internet Address is 192.168.0.100/24 Primary
IP Packet Frame Type: PKTFMT_ETHNT_2,  Hardware Address: 3ce5-a64f-8fc0
IPv6 Packet Frame Type: PKTFMT_ETHNT_2,  Hardware Address: 3ce5-a64f-8fc0

5.Configure the switch gateway address

<switch>system-view
[switch]ip route-static 0.0.0.00.0.0.0 192.168.0.1

6.VLAN Status

<switch>display vlan100
VLAN ID: 100

VLAN Type: static
Route Interface: configured
IP Address: 192.168.0.100
Subnet Mask: 255.255.255.0
Description: VLAN 00100
Name: VLAN 00100
Tagged   Ports: none
Untagged Ports:
    GigabitEthernet1/0/23
    GigabitEthernet1/0/24 

7.Change Port type (Access/Trunk/Hybrid)

<switch>system-view
[switch]interface GigabitEthernet 1/0/1
[switch-GigabitEthernet1/0/1]port link-type access

8.Add the port to VLAN 100

<switch>system-view
[switch] interface GigabitEthernet 1/0/24
[switch] port access vlan 100

9.Set the default VLAN for the trunk port

<switch>system-view
[switch]interface GigabitEthernet 1/0/24
[switch-GigabitEthernet1/0/24]port trunk pvid vlan 100

10.Allow the specified VLAN to pass through the current Trunk port

<switch>system-view
[switch]interface GigabitEthernet 1/0/24
[switch-GigabitEthernet1/0/24]port trunk permit vlan {list|all}

11.View port status

<switch>system-view
[switch] display interface GigabitEthernet1/0/24

12.Enable/Disable the port

<switch>system-view
[switch] interface GigabitEthernet 1/0/24
[switch] undo shutdown
[switch] shutdown

13.View current configuration

<switch>system-view
[switch] display current-configuration

14.Save the switch configuration
<switch>system-view
[switch] save

15.View saved configuration

<switch>system-view
[switch] display saved-configuration

Source : 

Friday, October 2, 2020

ARUBA SWITCH : Configure HOSTNAME, VLAN, IP and TRUNK

Telnet or SSH to switch. 

1. Create or change switch hostname 


switch# configure
switch<config># hostname <aruba-switch>
aruba-switch<config># exit
aruba-switch<config># write memory
aruba-switch#

2. Create VLANs 

 


aruba-switch# show vlans
aruba-switch# configure
aruba-switch<config># vlan <VLAN-ID>
aruba-switch<config># write memory
aruba-switch<VLAN-ID># 

3. Tagging or Untagging port in VLAN

 


aruba-switch<VLAN-ID># untagged <PORT NUMBER> - allow port to used that vlan ONLY
aruba-switch<VLAN-ID># tagged <PORT NUMBER> - allow that vlan to TRUNK over the port

4. Untagging port in VLAN for trunk to other switch


aruba-switch<VLAN-ID># untagged <PORT NUMBER> - allow that port to used as TRUNK port to other switch

* VLAN-ID is for vlan switch 

Wednesday, September 30, 2020

Friday, August 14, 2015

Guide Aruba AP

 Using command line

 1.    Reset AP to Factory setting

  • #purge – erase AP config
  • #factory_reset – erase all AP config

 Hit <Enter> to stop autoboot:  3

apboot> factory_reset
Clearing state... Checking OS image and flags
………………………….
Erased 1 sectors
Writing 9....8....7....6....5....4....3....2....1....
done
apboot>

 2.    To set IP Address and Connect IP Controller

 Hit <Enter> to stop autoboot:  3
…….
apboot>  printenv
apboot>  setenv name AP-X-X
apboot>  setenv ipaddr 10.11.0.X
apboot>  setenv netmask 255.255.240.0
apboot>  setenv gatewayip 10.11.0.254
apboot>  setenv master 10.11.0.254
apboot>  setenv serverip 10.11.0.254
apboot>  setenv group 10.11.0.254
apboot>  saveenv

*Setenv and Printenv are apboot commands to configure environment variables.

Source:

  1. Static IP - http://community.arubanetworks.com/t5/Controller-less-WLANs/How-do-I-configure-a-static-IP-addreess-to-an-Instant-Access/ta-p/185590
  2. Reset AP - http://www.shanekillen.com/2014/05/aruba-wireless-how-to-factory-reset.html