Category Archives: howto

EdgeRouter IPv6

Interfaces used:

  • eth0: WAN
  • eth1: secondary WAN (optional)
  • eth2: LAN

Adjust accordingly.

Create firewall rules for WAN6_IN

edit firewall ipv6-name WAN6_IN
set default-action drop
set rule 10 action accept
set rule 10 description "allow established"
set rule 10 protocol all
set rule 10 state established enable
set rule 10 state related enable
set rule 20 action drop
set rule 20 description "drop invalid packets"
set rule 20 protocol all
set rule 20 state invalid enable
set rule 30 action accept
set rule 30 description "allow ICMPv6"
set rule 30 protocol icmpv6
top

Create firewall rules for WAN6_LOCAL

edit firewall ipv6-name WAN6_LOCAL
set default-action drop
set rule 10 action accept
set rule 10 description "allow established"
set rule 10 protocol all
set rule 10 state established enable
set rule 10 state related enable
set rule 20 action drop
set rule 20 description "drop invalid packets"
set rule 20 protocol all
set rule 20 state invalid enable
set rule 30 action accept
set rule 30 description "allow ICMPv6"
set rule 30 protocol icmpv6
#set rule 40 action accept
#set rule 40 description "allow DHCPv6 client/server"
#set rule 40 destination port 546
#set rule 40 source port 547
#set rule 40 protocol udp
top

Assign IPv6 firewall rules to primary wan interface

set interfaces ethernet eth0 firewall in ipv6-name WAN6_IN
set interfaces ethernet eth0 firewall local ipv6-name WAN6_LOCAL

Assign IPv6 firewall rules to secondary wan interface (optional)

set interfaces ethernet eth1 firewall in ipv6-name WAN6_IN
set interfaces ethernet eth1 firewall local ipv6-name WAN6_LOCAL

Request prefix with eth0 and assign to eth2

Requested prefix size /60 for compatibility with FritzBox

edit interfaces ethernet eth0
set dhcpv6-pd prefix-only
set dhcpv6-pd pd 0 prefix-length /60
set dhcpv6-pd pd 0 interface eth2 host-address ::1
set dhcpv6-pd pd 0 interface eth2 prefix-id :0
set dhcpv6-pd pd 0 interface eth2 service slaac
top

finally

commit
save

ESXi configure SNMP

To configure the ESXi SNMP Agent:

  1. Open an SSH session to the ESXi host.
  2. Run this command to show the current SNMP config:
    esxcli system snmp get
  3. Set the SNMP parameters of the ESXi Host:
    esxcli system snmp set --communities public,eastnoc,westnoc
    esxcli system snmp set --syscontact user
    esxcli system snmp set --syslocation "location, world"
    
  4. Enable the SNMP Agent:
    esxcli system snmp set --enable true

Cisco Catalyst 9300 ios upgrade

  1. Remove Unwanted Packages
    install remove inactive
  2. Copy New Image to Flash
    copy usbflash0:/cat9k_iosxe.x.x.x.SPA.bin flash:/
  3. Set Boot Variable
    (config) boot system flash:packages.conf
    wr
    show boot system
  4. Software Install Image to Flash
    install add file flash:cat9k_iosxe.x.x.x.SPA.bin activate commit
  5. Verify New Packages and Image after reload
    dir flash:*.pkg
  6. Check Version and New Bootloader
    show version
  7. Clean up
    install remove inactive

UTF encoding

Code point range UTF-8 UTF-16
hexadecimal binary Bytes
(code bits)
binary hexadecimal Bytes
(code bits)
binary hexadecimal
00 00 00
00 00 7F
0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0111 1111
1
(7)
0xxx xxxx 00
7F
2
(16)
xxxx xxxx xxxx xxxx 00 00
FF FF
00 00 80
00 07 FF
0000 0000 0000 0000 1000 0000
0000 0000 0000 0111 1111 1111
2
(11)
110x xxxx
10xx xxxx
C2 80
DF BF
00 08 00
00 FF FF
0000 0000 0000 1000 0000 0000
0000 0000 1111 1111 1111 1111
3
(16)
1110 xxxx
10xx xxxx
10xx xxxx
E0 A0 80
EF BF BF
01 00 00
10 FF FF
0000 0001 0000 0000 0000 0000
0001 0000 1111 1111 1111 1111
4
(21)
1111 0xxx
10xx xxxx
10xx xxxx
10xx xxxx
F0 90 80 80
F4 8F BF BF
4
(20)
1101 10xx xxxx xxxx
1101 11xx xxxx xxxx
D8 00 DC 00
DB FF DF FF