Categories
Switch

Zyxel switch basic setup

Tested on GS2210

Setup DHCP

GS2210# configure 
GS2210(config)# vlan 1 
GS2210(config-vlan)# ip address default-management dhcp-bootp 
GS2210(config-vlan)# exit 
GS2210(config)# exit 
GS2210# write memory 

Setup static IP Address

GS2210# configure 
GS2210(config)# vlan 1 
GS2210(config-vlan)# ip address default-management 192.168.1.10 255.255.255.0
GS2210(config-vlan)# ip address default-gateway 192.168.1.1
GS2210(config-vlan)# exit 
GS2210(config)# exit 
GS2210# write memory 

Web Interface

From the above static IP Address setup, the web interface IP address is 192.168.1.10

URL: http://192.168.1.10

The default username and password Zyxel switch

Username: admin

Password: 1234

Basic Zyxel commands

GS2210# show version
GS2210# show ip
GS2210# show vlan 1
GS2210# show interfaces status
GS2210# show running-config page
Categories
Networking

Mac OS trunked VLAN Command line

VLAN Tagging in Terminal

ifconfig
sudo ifconfig vlan0 create
sudo ifconfig vlan0 vlan [VLAN-TAG] vlandev en0
sudo ipconfig set vlan0 DHCP

Note: [VLAN-TAG] = VLAN ID

Optional: Set static IP address

sudo ifconfig vlan0 inet 192.168.0.20 netmask 255.255.255.0

Set default gateway

sudo route add default 192.168.0.1

Delete vlan

sudo ifconfig vlan0 destroy
Categories
Networking

Opening a port on Mac

You could open a port by listening to the port

nc -l [PORT NUMBER]

Considering port is 500,

nc -l 500
Categories
Networking

Routing Basic Commands

sudo route add 192.168.1.0/24 [DEFAULT GATEWAY]
sudo route add 192.168.1.0/24 192.168.1.1

Debug Routing

netstat -nr

Mac

ifcoufig

Windows

ipconfig -all
Categories
Networking

Juniper SRX Factory reset

root@host# load factory-default
root@host# set system root-authentication plain-text-password
New password:
Retype new password:
root@host# commit check
root@host# commit