...
Tip |
---|
|
...
Login with username admin to arrive at the Linux shell prompt.
Code Block Username: admin Password: admin@LEAF-A$
Check the current PicOS mode using the /etc/init.d/picos status command the sudo picos-status command at the Linux shell.
Code Block admin@LEAF-A$sudo /etc/init.d/picos status xorp_rtrmgr is running. ovsdb-server is not running ... failed! ovs-vswitchd is not running ... failed!A:~$ sudo picos-status ********************************************************************** The setting of PICOS mode in picos_start.conf is Xorplus. ********************************************************************** PICOS is Running! Xorplus is Running! OVS is NOT Running! **********************************************************************
- Run the picos_boot script located in /usr/bin directory. The full path does not need to be used because the /usr/bin directory is on the system PATH by default.
- Enter option 2 to select OVS mode.
Choose how the IP address of the management interface should be configured: DHCP or static IP. If Static IP is chosen, values for static IP address, subnet mask, and default gateway must be provided. If DHCP is chosen, no more questions are asked.
Code Block admin@LEAF-A$sudo picos_boot Configure the default system start-up options: (Select key 3 if no change) [1] PicOSPICOS L2/L3 * default [2] PicOSPICOS Open vSwitch/OpenFlow [3] No start-up change Enter your choice (1,2,3):2 PicOSPICOS Open vSwitch/OpenFlow is selected. Configure the IP of management interface: [1] DHCP [2] Static IP Enter your choice(1,2):2 Note: The OVS server, by default, uses static local management IP and port 6640. vSwitch, by default, connects to the server via PTCP. Set a static IP and netmask for the switch (128.0.0.10/24):192.168.42.120/24 Set the gateway IP (172.168.1.2):192.168.42.1 Please restart the PicOSPICOS service
Restart the picos service to activate PicOS OVS mode.
Code Block admin@LEAF-A$sudo /etc/init.d/picossystemctl restart Stopping: PicOS L2/L3..picos ............. Stopping enhanced syslogd: rsyslogd. Starting enhanced syslogd: rsyslogd. Stopping internet superserver: xinetd. Restarting OpenBSD Secure Shell server: sshd. Starting: PicOS Open vSwitch/OpenFlow. Starting web server: lighttpd. admin@LEAF-A$
Verify that PicOS is now running in OVS mode.
Code Block admin@LEAF-A$sudo /etc/init.d/picos status xorp_rtrmgr is not running ... failed! ovsdb-server is running. ovs-vswitchd is running. admin@LEAF-A$A:~$ sudo picos-status ********************************************************************** The setting of PICOS mode in picos_start.conf is OVS. ********************************************************************** PICOS is Running! Xorplus is NOT Running! OVS is Running! **********************************************************************
As an alternative to restarting the picos service, user can just reboot the switch to bring the PicOS mode change into effect.
...
Info |
---|
The picos_boot script has the following options: Option 1 selects the PicOS PICOS L2/L3 (Layer 2 / Layer 3) mode. When user chooses option 1, PicOS PICOS will load in L2/L3 mode after a reboot. Option 2 selects the PicOS PICOS OVS (Open vSwitch) mode. When user chooses option 2, PicOS PICOS will load in OVS mode after a reboot. Option 3 does not modify the present PicOS PICOS mode. |
Switching from OVS Mode to L2/L3 Mode
...
Log in with username admin to arrive at the Linux shell prompt.
Code Block Username: admin Password: admin@PicOS-OVS$
Check the current PicOS mode using the /etc/init.d/picos sudo picos-status command at the Linux shell.
Code Block admin@PicOS-OVS$sudo /etc/init.d/picos status xorp_rtrmgr is not running ... failed! ovsdb-server is running. ovs-vswitchd is running. admin@PicOS-OVS$admin@LEAF-A:~$ sudo picos-status ********************************************************************** The setting of PICOS mode in picos_start.conf is OVS. ********************************************************************** PICOS is Running! Xorplus is NOT Running! OVS is Running! **********************************************************************
The above output shows that PicOS is running in OVS mode. Please refer to Checking PicOS Mode for details.
Run the picos_boot script located in /usr/bin directory. The full path does not need to be used because the /usr/bin directory is on the system PATH by default.
Enter option 1 to select L2/L3 mode.
Code Block admin@PicOS-OVS$sudo picos_boot Configure the default system start-up options: (Select key 3 if no change) [1] PicOSPICOS L2/L3 [2] PicOSPICOS Open vSwitch/OpenFlow * default [3] No start-up change Enter your choice (1,2,3):1 PicOSPICOS L2/L3 switch system is selected. Please restart the PicOSPICOS service
Restart the picos service to activate PicOS L2/L3 mode.
Code Block admin@PicOS-OVS$sudo /etc/init.d/picossystemctl restart Stopping web server: lighttpd. Stopping: PicOS Open vSwitch/OpenFlow. Starting: PicOS L2/L3..picos .......................... admin@PicOS-OVS$
Verify that the switch is running in PicOS L2/L3 mode.
Code Block admin@PicOS-OVS$sudo /etc/init.d/picos status xorp_rtrmgr is running. ovsdb-server is not running ... failed! ovs-vswitchd is not running ... failed! admin@PicOS-OVS$admin@LEAF-A:~$ sudo picos-status ********************************************************************** The setting of PICOS mode in picos_start.conf is Xorplus. ********************************************************************** PICOS is Running! Xorplus is Running! OVS is NOT Running! **********************************************************************
Optionally, user can run the cli command at the Linux shell to enter the PicOS L2/L3 operation mode.
Code Block admin@PicOS-OVS$cli Synchronizing configuration...OK. Pica8 PicOS Version 23.1.60 Welcome to PicOS L2/L3 on LEAF-A admin@LEAF-A>
...
Enter L2/L3 operation mode, using the cli command at the Linux shell.
Code Block admin@LEAF-A$ cli Synchronizing configuration...OK. Pica8 PicOS Version 2.6 Welcome to PicOS L2/L3 on LEAF-A admin@LEAF-A>
Enter configuration mode, using the configure command in the operation mode.
Code Block admin@LEAF-A> configure Entering configuration mode. There are no other users in configuration mode. admin@LEAF-A#
Enable CrossFlow mode, using the set xovs enable true command in configuration mode. Commit the changes, and exit the configuration mode. Then, exit the operation mode.
Code Block admin@LEAF-A# set xovs enable true admin@LEAF-A# commit Commit OK. Save done. admin@LEAF-A# exit admin@LEAF-A> exit admin@LEAF-A$
Verify that both L2/L3 and OVS modes are active using the /etc/init.d/picos status sudo picos-status command at the Linux shell.
Code Block admin@LEAF-A$/etc/init.d/picos status xorp_rtrmgr is running. ovsdb-server is running. ovs-vswitchd is running.A:~$ sudo picos-status ********************************************************************** The setting of PICOS mode in picos_start.conf is Crossflow. ********************************************************************** PICOS is Running! Xorplus is Running! OVS is Running! **********************************************************************
User can now run the OVS mode commands from the Linux shell.
Code Block admin@LEAF-A$ovs-vsctl show e8e63632-d96b-409a-89c3-95bb4ef61f46 Bridge "ECODE3" Controller "tcp:65.19.141.118:6633" is_connected: true Port "ge-1/1/1" Interface "ge-1/1/1" type: "pica8" Port "ECODE3" Interface "ECODE3" type: internal Port "ge-1/1/47" Interface "ge-1/1/47" type: "pica8" Port "ge-1/1/48" Interface "ge-1/1/48" type: "pica8" Port "ge-1/1/2" Interface "ge-1/1/2" type: "pica8"