How to setup the interface in cpboot

MVP Expert
MVP Expert
Requirement:

There might be instances were we may need to upgrade the Controller from CPboot mode. In such cases, a laptop or a switch is required to be connected to Controller's 0/0/0 interface to access AOS image via TFTP server. If admin decides to use any other port apart from 0/0/0, he needs to configure the interface value from CPboot.

 

Note : This applies to 70xx/72xx series Controllers. 



Solution:

As the controller boots up, note down the ports that can be used. 

 

CPBoot 1.0.2.0 (build 46859)
Built: 2014-10-31 at 10:13:10
DRAM:  4 GB
Detected [XLP208 Rev B0 (Secure Boot) ]
CPLD:  rev: 1.c (30:0060|32:0002|33:0000|34:0000|35:0000)
Flash: 32 MB
PCIE (B0:D01:F0) : No Link.
Bank:  Primary
Board: A7030
Proto: 2
CPU:   XLP208 Rev B0 (Secure Boot)
Clock: Core 1600 MHz / SoC 1600 MHz (924c0fb2)
Net:   ge-1, ge-0, ge-3, ge-2, ge-5, ge-4, ge-7, ge-6                                         --> Interfaces that can be used.
Hit any key to stop autoboot:  0

 

Note : By default, controller uses ge-0.



Configuration:

For example, when using port 0/0/1, below is what needs to be configured from CPboot.

 

cpboot> setenv ethact ge-1
cpboot> setenv ipadddr <ipaddr>
cpboot> setenv netmask <netmask>
cpboot> setenv gatewayip <gateway>
cpboot> setenv serverip <serverIP>


Verification

 

cpboot> printenv 
bootargs=quiet
bootcmd=bootf
bootdelay=2
baudrate=9600
netretry=no
wdtftp=1
ipaddr=50.0.0.10
netmask=255.255.255.0
gatewayip=50.0.0.2
stdin=serial
stdout=serial
stderr=serial
fdtaddr=ffffffff8c1a2930
ethaddr=00:0b:86:b8:cc:e8
eth1addr=00:0b:86:b8:cc:e9
eth2addr=00:0b:86:b8:cc:ea
ethact=ge-1


cpboot> ping 50.0.0.2
Using ge-1 device
host 50.0.0.2 is alive

Note: While using few other interfaces, we would get a prompt to configure the MAC address for the port.

cpboot> ping 50.0.0.2
*** ERROR: `eth4addr' not set
ping failed; host 50.0.0.2 is not alive
cpboot> 

In such cases, we need to additionally configure a mac address for the corresponding eth port.

For example:

cpboot> setenv eth4addr 00:0b:86:b8:cc:eb --> (Change the last digit of the MAC address which is set for the other interfaces - can be checked from printenv)

cpboot> saveenv  

 

Version history
Revision #:
2 of 2
Last update:
‎12-20-2018 03:52 PM
Updated by:
 
Labels (1)
Contributors
Search Airheads
cancel
Showing results for 
Search instead for 
Did you mean: