You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
どこのフォルダで実行するかは重要なので適当なフォルダ配下ではやらない
https://github.com/coreswitch/openconfigd/tree/0cfb7663db2c21805c8620292834e5461ae25b66
cd $GOPATH/bin
go get github.com/coreswitch/openconfigd/openconfigd
go get github.com/coreswitch/openconfigd/cli_command
cd $GOPATH/src/github.com/coreswitch/openconfigd/cli
./configure
make
sudo make install
cd $GOPATH/src/github.com/coreswitch/openconfigd/bash_completion.d
sudo cp cli /etc/bash_completion.d/
動作確認
openconfigd &
cli
ubuntu> show version
Developer Preview version of openconfigd
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
以下の様に設定
quagga02# show running-config
Building configuration...
Current configuration:
!
hostname zebra
hostname isisd
!
service integrated-vtysh-config
!
password zebra
enable password zebra
!
interface en
ipv6 nd suppress-ra
!
interface enp0s3
ipv6 nd suppress-ra
!
interface enp0s8
ipv6 nd suppress-ra
shutdown
!
interface enp0s9
ipv6 nd suppress-ra
!
interface enp0s10
ip address 10.0.100.1/24
ip router isis F00
ipv6 nd suppress-ra
!
interface enp0s16
ip address 172.0.0.2/24
ip router isis F00
ipv6 nd suppress-ra
!
interface lo
!
router isis F00
net 01.0023.0000.0000.0000.0000.0000.0000.1900.0002.00
metric-style wide
!
line vty
!
end
設定した後
ISISにてルートが運ばれて来ているのを確認
quagga02# show ip route
Codes: K - kernel route, C - connected, S - static, R - RIP,
O - OSPF, I - IS-IS, B - BGP, A - Babel,
> - selected route, * - FIB route
K>* 0.0.0.0/0 via 10.0.2.2, enp0s3
C>* 10.0.2.0/24 is directly connected, enp0s3
C>* 10.0.100.0/24 is directly connected, enp0s10
I>* 10.0.200.0/24 [115/20] via 172.0.0.1, enp0s16, 00:07:19
C>* 127.0.0.0/8 is directly connected, lo
I 172.0.0.0/24 [115/20] via 172.0.0.1 inactive, 00:07:19
C>* 172.0.0.0/24 is directly connected, enp0s16
Open Network Linux is compatible with most forwarding agents including: FRRouting, Quagga, BIRD, Facebook FBOSS, Google gNOS and Azure SONiC.
https://opennetlinux.org/
FBOSS
C:\Users\vietnam\Downloads\fboss-master\fboss\agent\TunIntf.cpp(279,38) [SJIS]: throw NlError(err, "can't open rtnetlink.");
Downloading and running OpenNSL sample applications
1. Building
Extract the code tarball into the destination directory say opennsl_root.
Go to output directory. For Wedge Network Switch platform, it is
opennsl_root/opennsl/output/wedge
Set KERNEL_SRC to point to the kernel headers.
Wedge Network Switch platform is supported with CentOS 6.5 Linux distribution.
[Eg: export KERNEL_SRC==/usr/src/kernels/2.6.32-431.el6.x86_64 or 2.6.32-504.8.1.el6.x86_64 ]
Issue "make" to create an OpenNSL shared library object, linux kernel modules.
[Note]: OpenNSL requires MAKE version 3.82. MAKE version 4.0 is not supported.
To force the MAKE version, set the following variable.
"export MAKEVER=3.82"
The deliverables folder : opennsl_root/opennsl/output/wedge/build
shall have the following files.
a) Linux kernel module : linux-kernel-bde.ko
b) Linux user module : linux-user-bde.ko
c) KNET driver module : linux-bcm-knet.ko
d) OpenNSL shared object library : libopennsl.so
→カーネルモジュール、共有ライブラリ
2. Building example Applications
→省略
3. Downloading and running OpenNSL sample applications
cd to target deliverables directory. For Wedge Network Switch platform, it is
opennsl_root/opennsl/output/wedge/build.
Use the following commands to update the linux kernel modules
i ) Execute "lsmod" to list the installed linux kernel modules.
ii ) Remove the linux kernel and user modules by using "rmmod" command.
iii) Install linux kernel modules built for OpenNSL platform by using
the following commands. Please ensure that the modules are removed
before inserting it using 'rmmod' command.
→ もともとあるKernelモジュールをアンロードして、以下のようにモジュールを追加する
> mknod /dev/linux-kernel-bde c 127 0
> mknod /dev/linux-user-bde c 126 0
> mknod /dev/linux-bcm-knet c 122 0
> insmod linux-kernel-bde.ko
> insmod linux-user-bde.ko
> insmod linux-bcm-knet.ko
Install OpenNSL shared library. The destination directory to install the
shared library depends on the host environment configuration. Install the
library files in a location included in the system's library search path.
mv libopennsl.so.1 /usr/lib
cd /usr/lib
ln -sf libopennsl.so.1 libopennsl.so
Download the wedge platform configuration files to switch. Set the OPENNSL_CONFIG_FILE path
to point to the relevant configuration file based on the wedge switch variant. Refer to OpenNSL documentation,
section "Customizing OpenNSL platform" for more details.
$Id: bcm-knet.c,v 1.90 Broadcom SDK $$Copyright: (c) 2005 Broadcom Corp.
All Rights Reserved.$
/
/*
This module implements a Linux network driver for Broadcom
XGS switch devices. The driver simultaneously serves a
number of vitual Linux network devices and a Tx/Rx API
implemented in user space.
Packets received from the switch device are sent to either
a virtual Linux network device or the user mode Rx API
based on a set of packet filters.susp
A virtual network interface can be configured to work in RCPU
mode, which means that packets from the switch device will
be encasulated with a RCPU header and a block of meta data
that basically contains the core DCB information. Likewise,
packets received from the Linux network stack are assumed to
be RCPU encapsulated when going out on an interface in RCPU
mode.
The module implements basic Rx DMA rate control. The rate is
specified in packets per second, and different Rx DMA channels
can be configured to use different maximum packet rates.
The packet rate can be configure as a module parameter, and
it can also be changed dynamically through the proc file
system (syntax is described in function header comment).
To support multiple instance, each instance has its event queue.
To support pci hot-plug in this module, the resource update
should be handled when the PCI device is re-plugged.
NOTE: the KNET detach should be invoked befere removing the
device.
For a list of supported module parameters, please see below.
/
Juniper vSRX (formerly known as Firefly Perimeter) is one of the recent software additions for Juniper Networks. This will enable network and security administrators to dynamically deploy and scale firewall protection with the breadth and depth required to address key security challenges unique to virtualize and cloud environments.
This article will help customers in accessing the evaluation software for vSRX, in case they do not own any of these products yet.
Juniper’s new software evaluation program makes it easier for you to try the vSRX security solution and see for yourself how it protects virtualized \and cloud environments while maintaining maximum capacity and performance.