Skip to content

Instantly share code, notes, and snippets.

@siketyan
Created August 23, 2022 04:22
Show Gist options
  • Save siketyan/88ada3d906eff1ee8930da2aa886f083 to your computer and use it in GitHub Desktop.
Save siketyan/88ada3d906eff1ee8930da2aa886f083 to your computer and use it in GitHub Desktop.
VyOS configuration that demonstrates speed of NURO Hikari (Internet provider in Japan).
# Create VLAN interface (.15 in this case)
set interfaces ethernet eth1 vif 15 address 172.18.1.1/16
set interfaces ethernet eth1 vif 15 description "NURO"
# Enable DHCP server for the network (optional)
set service dhcp-server shared-network-name nuro authoritative
set service dhcp-server shared-network-name nuro name-server 45.90.28.127
set service dhcp-server shared-network-name nuro subnet 172.18.0.0/16 default-router 172.18.1.1
set service dhcp-server shared-network-name nuro subnet 172.18.0.0/16 range 1 start 172.18.10.1
set service dhcp-server shared-network-name nuro subnet 172.18.0.0/16 range 1 stop 172.18.10.253
# Enable traffic policy to demonstrate NURO speed
set traffic-policy network-emulator NURO bandwidth 1mibit
set interfaces ethernet eth1 vif 15 traffic-policy out NURO
commit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment