vyos switch configuration
vyos switch configuration
Table of Contents
BIOS configuration....................................................................................................................................2
CPU.......................................................................................................................................................2
PCIe configuration................................................................................................................................2
Installation..................................................................................................................................................2
Boot VyOS install..................................................................................................................................2
Getting started...................................................................................................................................3
After boot.....................................................................................................................................3
Commands...................................................................................................................................3
Example how to assign an IP to an interface and enable ssh................................................................3
How to order the interfaces...................................................................................................................4
Changing/assigning interfaces names to a mac.....................................................................................5
Changing configuration..............................................................................................................................6
Show running config.............................................................................................................................6
Changing host name..............................................................................................................................6
Changing gateway.................................................................................................................................6
Changing DNS......................................................................................................................................6
Changing time zone...............................................................................................................................6
Checking with compare.........................................................................................................................6
Commit and Save..................................................................................................................................7
The bridge................................................................................................................................................10
Creating the bridge..............................................................................................................................10
Assign interfaces to the bridge............................................................................................................10
Add description to interface................................................................................................................11
Setting MTU on 10gb interfaces.........................................................................................................11
Compare/review/commit/save.............................................................................................................11
1
How to configure VyOS to create a switch
BIOS configuration
CPU
- Enable Direct Cache Access (DCA)
– IOAT enable
Try No Snoop and Relaxed Ordering if present
PCIe configuration
Installation
Boot VyOS install
• user = vyos
• pass = vyos
2
How to configure VyOS to create a switch
Getting started
After boot
• Run install image
• When finished, remove CD and type reboot
Commands
configure
show interfaces
show interfaces ethernet eth0 identify
set interfaces ethernet eth0 address 10.10.10.245/24
set interfaces ethernet eth0 description ‘management’
set service ssh listen-address 10.10.10.245
commit
save
3
How to configure VyOS to create a switch
i.e.:
Interfaces are out of order by mac address. Eth0 should be (your choice) 00:15:17:d2:d8:e0
i.e.:
vyos@vyos:~$ cd /config/
vyos@vyos:/config$ cp config.boot config.boot-old
4
How to configure VyOS to create a switch
5
How to configure VyOS to create a switch
Changing configuration
Show running config
vyos@vyos:~$ configure
[edit]
vyos@vyos# show system
Changing gateway
vyos@vyos# set system gateway-address 10.10.10.1
Changing DNS
vyos@vyos# set system name-server 10.10.10.1
6
How to configure VyOS to create a switch
[edit]
vyos@vyos# set system time-zone US/Eastern
[edit]
vyos@vyos# compare
[edit system]
+gateway-address 10.10.10.1
>host-name melloswitch
+name-server 10.10.10.1
>time-zone US/Eastern
[edit]
[edit]
vyos@vyos# save
Saving configuration to '/config/config.boot'...
Done
[edit]
7
How to configure VyOS to create a switch
Verifying configuration
vyos@vyos# ping yahoo.com
PING yahoo.com (98.138.219.231) 56(84) bytes of data.
64 bytes from media-router-fp1.prod1.media.vip.ne1.yahoo.com (98.138.219.231): icmp_req=1 ttl=47
time=50.7 ms
vyos@vyos# ntpq -p
remote refid st t when poll reach delay offset jitter
=========================================================================
=====
+ord1.m-d.net 142.66.101.13 2u 3 64 1 40.592 2.306 2.130
+nms.switch.ca 206.108.0.134 2u - 64 3 89.506 3.708 8.144
*europa.ellipse. 204.9.54.119 2 u 31 64 1 56.702 1.555 0.116
Note:
Tried setting time zone using Americas/New_York. System didn’t show any errors.
vyos@vyos# set system time-zone America/New_York
[edit]
vyos@vyos# commit
[ system time-zone America/New_York ]
Stopping enhanced syslogd: rsyslogd.
Starting enhanced syslogd: rsyslogd.
[edit]
vyos@vyos# save
Saving configuration to '/config/config.boot'...
Done
[edit]
vyos@vyos# ntpq -p
8
How to configure VyOS to create a switch
9
How to configure VyOS to create a switch
The bridge
Note: Work from console as management IP will be removed (notice new switch name)
10
How to configure VyOS to create a switch
Compare/review/commit/save
vyos@melloswitch# compare
vyos@melloswitch# commit
vyos@melloswitch# save
11