Difference between revisions of "Software development on Arista hardware"

From PDP/Grid Wiki
Jump to navigationJump to search
Line 32: Line 32:
 
  show run | include network
 
  show run | include network
 
Show active run information, and filter on the announced networks.
 
Show active run information, and filter on the announced networks.
 +
 +
ena
 +
conf t
 +
Go into configuration mode

Revision as of 20:38, 17 July 2011

Development platform

My development platform is an Arista 7148S switch and compatible devices. The firmware version used is EOS 4.7 which based on Fedora Core 12 (with some small exceptions).


Project: arp-2-bgp

https://github.com/okoeroo/arp-2-bgp

Helper tools

https://github.com/okoeroo/arista-EOS-rc


Unstructured notes

The flash disk is a FAT32 disk of 2GB and by default mounted on /mnt/flash

The /mnt/flash/persistent/ directory contains the system disk images.

The file /mnt/flash/rc.eos is executed at the end of the boot (switch reload) time. It has the file /etc/swi-version sourced, exposing the EOS version.

The switch CLI is executed by the python script:

/usr/bin/Cli

If you run this shell from the admin user on the switch, then this will not succeed for all switch-CLI commands. Perform a privilege upgrade on the bash shell with "su" or let a cron job run with root privileges.


Switch CLI commands of interest

show ip arp

This exposes the IP addresses of the connected hosts and on with Vlan they reside.

show run | include network

Show active run information, and filter on the announced networks.

ena
conf t

Go into configuration mode