create link

Emulates a cable connection for traffic between two entities.

Syntax

create link first-entity second-entity
create link chassis-name slot / port second-entity
create link workstation-name slot / port second-entity
create link tunnel-name slot / port second-entity
create link -bridge bridge-name second-entity
create link -interface interface-name second-entity
create link -probe probe-name second-entity

Command Default

No links exist.

Parameters

first-entity
Specifies the first device port, host-name, bridge, probe, or tunnel.
second-entity
Specifies the second device port, host-name, bridge, probe, or tunnel.
chassis-name
Specifies the SLX device for linking.
slot
Specifies a valid slot number. Must be 0 if the device does not contain slots.
port
Specifies a valid port number.
workstation-name
Specifies a workstation for linking.
slot
Specifies a valid slot number. Must be 0 if the device does not contain slots.
port
Specifies a valid port number.
tunnel-name
Specifies a tunnel interface for linking.
slot
Specifies a valid slot number. Values range from 0 through 15.
port
Specifies a valid port number. Values range from 1 through 4095.
-bridge bridge-name
Specifies a bridge for linking. You can abbreviate -bridge with -b.
-interface interface-name
Specifies a physical interface on the x86 server on which vSLX is running. You can abbreviate -interface with -i.
-probe probe-name
Specifies a probe for linking. You can abbreviate -probe with -p.

Modes

vShell prompt (vsh)

Usage Guidelines

To log into vShell and run this command, enter the user@ubuntu:~$ vsh create link command.

You can use the create link -interface interface-name option to connect a port on the x86 server to the virtual network you created. You can use this option to feed traffic-generator input into the virtual network.

In general, you link an entity from one server to an entity on another server through tunnel devices that are connected between the servers. (Tunnels are implemented in pairs between the two servers.)

To delete a link, use the delete link command.

Examples

The following example shows how to connect two ports on two virtual devices.

(vsh) create link ch_9540_01 0/1 ch_9540_02 1/1
(vsh) create link ch_9540_01 0/3 ch_9540_02 5/1

The following example creates a link connecting port 1/1 on router RT1 to port 1/1 on router RT2 and a link connecting port 1/2 on router RT2 to an x86 server port with hostname "eth1".

(vsh) create link RT1 1/1 RT2 1/1
(vsh) create link RT2 1/2 -interface eth1 1