Ubiquiti EdgeOS

Ubiquiti EdgeOS Cheatsheet #

Ubiquiti EdgeOS is the operating system used in Ubiquiti’s EdgeRouter products. This cheatsheet covers commonly used commands and configurations for Ubiquiti EdgeOS.

Basic Commands #

Command/OptionExampleDescription
show versionshow versionDisplay the software version and system information
configureconfigureEnter configuration mode
commitcommitCommit changes to the configuration
savesaveSave the current configuration
exitexitExit configuration mode
rebootrebootReboot the router
shutdownshutdownShut down the router

Interface Configuration #

Command/OptionExampleDescription
set interfaces ethernet eth0 address <addr>set interfaces ethernet eth0 address 192.168.1.1/24Configure IP address for interface eth0
set interfaces ethernet eth0 description <desc>set interfaces ethernet eth0 description 'WAN'Set description for interface eth0
delete interfaces ethernet eth0 address <addr>delete interfaces ethernet eth0 address 192.168.1.1/24Remove IP address from interface eth0
show interfacesshow interfacesDisplay interface status

VLAN Configuration #

Command/OptionExampleDescription
set interfaces ethernet eth0 vif <id> address <addr>set interfaces ethernet eth0 vif 10 address 192.168.10.1/24Create a VLAN on an interface
set interfaces ethernet eth0 vif <id> description <desc>set interfaces ethernet eth0 vif 10 description 'Management VLAN'Set description for VLAN
delete interfaces ethernet eth0 vif <id>delete interfaces ethernet eth0 vif 10Remove a VLAN from an interface
show interfacesshow interfacesDisplay interface and VLAN status

Firewall Configuration #

Command/OptionExampleDescription
set firewall name <name> default-action <action>set firewall name WAN_IN default-action dropCreate a firewall rule set with default action
set firewall name <name> rule <num> action <action>set firewall name WAN_IN rule 10 action acceptAdd a firewall rule to the rule set
set firewall name <name> rule <num> source address <addr>set firewall name WAN_IN rule 10 source address 192.168.1.0/24Specify source address for the rule
set firewall name <name> rule <num> destination port <port>set firewall name WAN_IN rule 10 destination port 22Specify destination port for the rule
set interfaces ethernet eth0 firewall in name <name>set interfaces ethernet eth0 firewall in name WAN_INApply firewall rule set to an interface
show firewallshow firewallDisplay firewall rules and status

VPN Configuration #

Command/OptionExampleDescription
set vpn ipsec site-to-site peer <peer> authentication mode pre-shared-secretset vpn ipsec site-to-site peer 203.0.113.1 authentication mode pre-shared-secretSet VPN peer authentication mode
set vpn ipsec site-to-site peer <peer> authentication pre-shared-secret <secret>set vpn ipsec site-to-site peer 203.0.113.1 authentication pre-shared-secret mysecretSet VPN pre-shared secret
set vpn ipsec site-to-site peer <peer> connection-type initiateset vpn ipsec site-to-site peer 203.0.113.1 connection-type initiateSet VPN connection type
set vpn ipsec site-to-site peer <peer> default-esp-group <group>set vpn ipsec site-to-site peer 203.0.113.1 default-esp-group defaultSet VPN ESP group
set vpn ipsec site-to-site peer <peer> local-address <addr>set vpn ipsec site-to-site peer 203.0.113.1 local-address 192.168.1.1Set local IP address for VPN
set vpn ipsec site-to-site peer <peer> tunnel <id> local prefix <prefix>set vpn ipsec site-to-site peer 203.0.113.1 tunnel 1 local prefix 192.168.1.0/24Set local prefix for VPN tunnel
set vpn ipsec site-to-site peer <peer> tunnel <id> remote prefix <prefix>set vpn ipsec site-to-site peer 203.0.113.1 tunnel 1 remote prefix 10.0.0.0/24Set remote prefix for VPN tunnel
show vpn ipsecshow vpn ipsecDisplay VPN IPsec status

Routing Configuration #

Command/OptionExampleDescription
set protocols static route <network> next-hop <gateway>set protocols static route 0.0.0.0/0 next-hop 192.168.1.1Add a static route
delete protocols static route <network>delete protocols static route 0.0.0.0/0Remove a static route
show ip routeshow ip routeDisplay routing table

System Management #

Command/OptionExampleDescription
set system host-name <name>set system host-name MyRouterSet the system hostname
set system time-zone <zone>set system time-zone UTCSet the system time zone
set system login user <user> authentication plaintext-password <password>set system login user admin authentication plaintext-password mypasswordSet user password
set system ntp server <server>set system ntp server 0.pool.ntp.orgSet NTP server for time synchronization
show system uptimeshow system uptimeDisplay system uptime
show system memoryshow system memoryDisplay system memory usage
show system diskshow system diskDisplay system disk usage

This cheatsheet provides essential Ubiquiti EdgeOS commands for network management, interface configuration, VLANs, firewalls, VPNs, routing, and system management. For more detailed information, refer to the Ubiquiti EdgeOS documentation.

Ubiquiti EdgeOS

Explore our comprehensive cheatsheets to enhance your knowledge and efficiency. Each cheatsheet provides detailed command options, examples, and descriptions to help you master various tools and technologies.