Add interface more than 7

Moderator: mike

soulless
Posts: 6
Joined: Mon Jun 05, 2017 7:59 pm

Add interface more than 7

Post by soulless » Mon Jun 12, 2017 12:33 pm

@Adrea UD

I wanna ask question about how to add ethernet more-than 7 on 77750SR(timos), I tried modify template, __node.php and functions.php files, but it isn't work that enter "show port" it's up 6 port, i wanna ethernet is map port on 7750SR(timos) more-than 7 port.

Please help me emend this issue.

Best Regards.
ToMMy
Last edited by soulless on Tue Jun 13, 2017 5:18 pm, edited 1 time in total.

ecze
Posts: 533
Joined: Wed Mar 15, 2017 1:54 pm

Re: Add interface more than 7

Post by ecze » Mon Jun 12, 2017 3:54 pm

In next release you should be able to manage card type inside the node.

E.

soulless
Posts: 6
Joined: Mon Jun 05, 2017 7:59 pm

Re: Add interface more than 7

Post by soulless » Tue Jun 13, 2017 5:29 pm

It's good news for me,
Thank you very much for developing it give everybody use ,
I love unetlab and EVE-NG.

I will wait it coming soon.

Best Regards.
ToMMy

rifster
Posts: 21
Joined: Wed Mar 22, 2017 8:14 am

Re: Add interface more than 7

Post by rifster » Tue Jun 13, 2017 7:04 pm

Hi,
Below you'll find content of timos.php I'm using. It will set you up with 11 interfaces (1st is for CPM, rest is for MDA).

Code: Select all

$p['type'] = 'qemu';
$p['name'] = '7750SR';
$p['icon'] = 'Router.png';
if (function_exists('isVirtual') && isVirtual()) {
	$p['cpu'] = 1;
} else {
	$p['cpu'] = 2;
}
$p['ram'] = 2048;
$p['ethernet'] = 11;
$p['console'] = 'telnet';
$p['qemu_arch'] = 'x86_64';
if (function_exists('isVirtual') && isVirtual()) {
	$p['qemu_options'] = '-machine accel=tcg';
} else {
	$p['qemu_options'] = '-machine accel=kvm';
}
$p['qemu_options'] .= ' -serial mon:stdio -nographic -nodefconfig -nodefaults -rtc base=utc -smbios type=1,product=\"TIMOS:slot=A chassis=SR-c12 card=cfm-xp mda/1=m10-1gb-xp-sfp\"';

soulless
Posts: 6
Joined: Mon Jun 05, 2017 7:59 pm

Re: Add interface more than 7

Post by soulless » Wed Jun 14, 2017 2:52 pm

Hi rifster

I tried edit timos.php follow you, but it isn't work that port up 1/1/1 - 1/1/5 according result below.

Code: Select all

A:vSIM# show  card 

===============================================================================
Card Summary
===============================================================================
Slot      Provisioned Type                         Admin Operational   Comments
              Equipped Type (if different)         State State         
-------------------------------------------------------------------------------
1         (not provisioned)                        up    unprovisioned 
              iom-xp                               
A         cfm-xp                                   up    up/active     
B         cfm-xp                                   up    down/standby  
              (not equipped)                       
===============================================================================
A:vSIM# 
A:vSIM# configure card 1 card-type "iom-xp" 
*A:vSIM# show  card state 

===============================================================================
Card State
===============================================================================
Slot/  Provisioned Type                  Admin Operational   Num   Num Comments
Id         Equipped Type (if different)  State State         Ports MDA 
-------------------------------------------------------------------------------
1      iom-xp                            up    up                  12  
1/1    (not provisioned)                 up    unprovisioned           
           mcm-xp                        
A      cfm-xp                            up    up                      Active
B      cfm-xp                            up    down                    Standby
           (not equipped)
===============================================================================
*A:vSIM# configure card 1 mcm 1 mcm-type "mcm-xp" 
*A:vSIM# show card state 

===============================================================================
Card State
===============================================================================
Slot/  Provisioned Type                  Admin Operational   Num   Num Comments
Id         Equipped Type (if different)  State State         Ports MDA 
-------------------------------------------------------------------------------
1      iom-xp                            up    up                  12  
1/1    mcm-xp                            up    up                      
1/1    (not provisioned)                 up    unprovisioned           
           m10-1gb-xp-sfp
A      cfm-xp                            up    up                      Active
B      cfm-xp                            up    down                    Standby
           (not equipped)
===============================================================================
*A:vSIM# show mda 

===============================================================================
MDA Summary
===============================================================================
Slot  Mda   Provisioned Type                            Admin     Operational
                Equipped Type (if different)            State     State
-------------------------------------------------------------------------------
1     1     (not provisioned)                           up        unprovisioned
                m10-1gb-xp-sfp                                        
===============================================================================
*A:vSIM# configure card 1 mda 1 mda-type "m10-1gb-xp-sfp" 
*A:vSIM# show card state 

===============================================================================
Card State
===============================================================================
Slot/  Provisioned Type                  Admin Operational   Num   Num Comments
Id         Equipped Type (if different)  State State         Ports MDA 
-------------------------------------------------------------------------------
1      iom-xp                            up    up                  12  
1/1    mcm-xp                            up    up                      
1/1    m10-1gb-xp-sfp                    up    up            10        
A      cfm-xp                            up    up                      Active
B      cfm-xp                            up    down                    Standby
           (not equipped)
===============================================================================
*A:vSIM# show port 

===============================================================================
Ports on Slot 1
===============================================================================
Port          Admin Link Port    Cfg  Oper LAG/ Port Port Port   C/QS/S/XFP/
Id            State      State   MTU  MTU  Bndl Mode Encp Type   MDIMDX
-------------------------------------------------------------------------------
1/1/1         Down  No   Down    8704 8704    - netw null xcme   GIGE-LX  10KM
1/1/2         Down  No   Down    8704 8704    - netw null xcme   GIGE-LX  10KM
1/1/3         Down  No   Down    8704 8704    - netw null xcme   GIGE-LX  10KM
1/1/4         Down  No   Down    8704 8704    - netw null xcme   GIGE-LX  10KM
1/1/5         Down  No   Down    8704 8704    - netw null xcme   GIGE-LX  10KM
1/1/6         Down  No   Down    8704 8704    - netw null xcme   GIGE-LX  10KM
1/1/7         Down  No   Down    8704 8704    - netw null xcme   GIGE-LX  10KM
1/1/8         Down  No   Down    8704 8704    - netw null xcme   GIGE-LX  10KM
1/1/9         Down  No   Down    8704 8704    - netw null xcme   GIGE-LX  10KM
1/1/10        Down  No   Down    8704 8704    - netw null xcme   GIGE-LX  10KM

===============================================================================
Ports on Slot A
===============================================================================
Port          Admin Link Port    Cfg  Oper LAG/ Port Port Port   C/QS/S/XFP/
Id            State      State   MTU  MTU  Bndl Mode Encp Type   MDIMDX
-------------------------------------------------------------------------------
A/1           Up    Yes  Up      1514 1514    - netw null faste  MDI

===============================================================================
Ports on Slot B
===============================================================================
Port          Admin Link Port    Cfg  Oper LAG/ Port Port Port   C/QS/S/XFP/
Id            State      State   MTU  MTU  Bndl Mode Encp Type   MDIMDX
-------------------------------------------------------------------------------
B/1           Up    No   Ghost   1514 1514    - netw null faste  
===============================================================================
*A:vSIM# configure port 1/1/[1..10] no shu
*A:vSIM# show port                    

===============================================================================
Ports on Slot 1
===============================================================================
Port          Admin Link Port    Cfg  Oper LAG/ Port Port Port   C/QS/S/XFP/
Id            State      State   MTU  MTU  Bndl Mode Encp Type   MDIMDX
-------------------------------------------------------------------------------
1/1/1         Up    Yes  Up      8704 8704    - netw null xcme   GIGE-LX  10KM
1/1/2         Up    Yes  Up      8704 8704    - netw null xcme   GIGE-LX  10KM
1/1/3         Up    Yes  Up      8704 8704    - netw null xcme   GIGE-LX  10KM
1/1/4         Up    Yes  Up      8704 8704    - netw null xcme   GIGE-LX  10KM
1/1/5         Up    Yes  Up      8704 8704    - netw null xcme   GIGE-LX  10KM
1/1/6         Up    No   Down    8704 8704    - netw null xcme   GIGE-LX  10KM
1/1/7         Up    No   Down    8704 8704    - netw null xcme   GIGE-LX  10KM
1/1/8         Up    No   Down    8704 8704    - netw null xcme   GIGE-LX  10KM
1/1/9         Up    No   Down    8704 8704    - netw null xcme   GIGE-LX  10KM
1/1/10        Up    No   Down    8704 8704    - netw null xcme   GIGE-LX  10KM

===============================================================================
Ports on Slot A
===============================================================================
Port          Admin Link Port    Cfg  Oper LAG/ Port Port Port   C/QS/S/XFP/
Id            State      State   MTU  MTU  Bndl Mode Encp Type   MDIMDX
-------------------------------------------------------------------------------
A/1           Up    Yes  Up      1514 1514    - netw null faste  MDI

===============================================================================
Ports on Slot B
===============================================================================
Port          Admin Link Port    Cfg  Oper LAG/ Port Port Port   C/QS/S/XFP/
Id            State      State   MTU  MTU  Bndl Mode Encp Type   MDIMDX
-------------------------------------------------------------------------------
B/1           Up    No   Ghost   1514 1514    - netw null faste  
===============================================================================
*A:vSIM#

rifster
Posts: 21
Joined: Wed Mar 22, 2017 8:14 am

Re: Add interface more than 7

Post by rifster » Wed Jun 14, 2017 8:26 pm

Hi,
I'm running release 15.0.R1 and have 4 more Up/Up. Tested with 14.0.R7 and had the same output as you.

Code: Select all

*A:vSIM# show port                          

===============================================================================
Ports on Slot 1
===============================================================================
Port          Admin Link Port    Cfg  Oper LAG/ Port Port Port   C/QS/S/XFP/
Id            State      State   MTU  MTU  Bndl Mode Encp Type   MDIMDX
-------------------------------------------------------------------------------
1/1/1         Up    Yes  Up      8704 8704    - netw null xcme   GIGE-LX  10KM
1/1/2         Up    Yes  Up      8704 8704    - netw null xcme   GIGE-LX  10KM
1/1/3         Up    Yes  Up      8704 8704    - netw null xcme   GIGE-LX  10KM
1/1/4         Up    Yes  Up      8704 8704    - netw null xcme   GIGE-LX  10KM
1/1/5         Up    Yes  Up      8704 8704    - netw null xcme   GIGE-LX  10KM
1/1/6         Up    Yes  Up      8704 8704    - netw null xcme   GIGE-LX  10KM
1/1/7         Up    Yes  Up      8704 8704    - netw null xcme   GIGE-LX  10KM
1/1/8         Up    Yes  Up      8704 8704    - netw null xcme   GIGE-LX  10KM
1/1/9         Up    Yes  Up      8704 8704    - netw null xcme   GIGE-LX  10KM
1/1/10        Up    No   Down    8704 8704    - netw null xcme   GIGE-LX  10KM

===============================================================================
Ports on Slot A
===============================================================================
Port          Admin Link Port    Cfg  Oper LAG/ Port Port Port   C/QS/S/XFP/
Id            State      State   MTU  MTU  Bndl Mode Encp Type   MDIMDX
-------------------------------------------------------------------------------
A/1           Up    Yes  Up      1514 1514    - netw null faste  MDI

===============================================================================
Ports on Slot B
===============================================================================
Port          Admin Link Port    Cfg  Oper LAG/ Port Port Port   C/QS/S/XFP/
Id            State      State   MTU  MTU  Bndl Mode Encp Type   MDIMDX
-------------------------------------------------------------------------------
B/1           Up    No   Ghost   1514 1514    - netw null faste  
===============================================================================
*A:vSIM# 

soulless
Posts: 6
Joined: Mon Jun 05, 2017 7:59 pm

Re: Add interface more than 7

Post by soulless » Sat Jun 24, 2017 4:58 pm

Hi

Oh! Cool, Do you have license for version 14.0.Rx and 15.0.Rx ?

Best R.

rifster
Posts: 21
Joined: Wed Mar 22, 2017 8:14 am

Re: Add interface more than 7

Post by rifster » Tue Jun 27, 2017 6:18 pm

Hi,
Yes, I work for the vendor and use internal lab license.

ecze
Posts: 533
Joined: Wed Mar 15, 2017 1:54 pm

Re: Add interface more than 7

Post by ecze » Tue Jun 27, 2017 8:20 pm


rifster
Posts: 21
Joined: Wed Mar 22, 2017 8:14 am

Re: Add interface more than 7

Post by rifster » Sat Jul 01, 2017 10:39 am

@ecze,
Great news about the update and new features but please double check the HOWTO in point where you create the symlink. I think it should be something like below.

Code: Select all

ln -s /opt/unetlab/addons/qemu/timos-14.0.R7 /opt/unetlab/addons/qemu/timoscpm-14.0.R7
ln -s /opt/unetlab/addons/qemu/timos-14.0.R7 /opt/unetlab/addons/qemu/timosiom-14.0.R7
@soulless,
If you run your VSR in distributed mode each IOM is a separate VM hence each can support several ports, in your case 5 on release 14.0.R7. If you create logical SR12 chassis and add 5 IOMs, you get 25 ports up/up in 1 logical node.

Going further... If you modify /opt/unetlab/html/includes/__node.php in line 1050:
from

Code: Select all

$flags .= ' address='. $this -> management_address . '@active'; 
to

Code: Select all

$flags .= ' '. $this -> management_address; 
and then you put this into CPM Management address (IP addresses may be different of course):

Code: Select all

address=172.16.0.1/24@active address=172.16.0.2/24@standby
you will be able to run distributed VSR with active and standby CPMs.

Post Reply