Printer FriendlyEmail Article Link

TTworkbench: how to modify C1/C50 Ethernet interface - change IP and add VLAN?

Environment/Versions
TTworkbench, C1 or C50
Answer
You can log into C1/C50 over SSH (TTworkbench on C1/C5 first steps guide)

Change temprorarily by entering the following command, e.g:
change vEth0 IP 


ifconfig vEth0 172.16.100.51 netmask 255.255.255.0

add VLAN ID 100 and IP 100.100.10.10 to vEth2

ip link add link vEth2 name vEth2.100 type vlan id 100
ip addr add 100.100.10.10/24 dev vEth2.100
ip link set dev vEth2.100 up


The changes disappears after reboot.

Change permantly by modifying ifup.sh file as below, e.g.:
change vEth0 IP


ifconfig_params_vEth0="172.16.100.51 netmask 255.255.255.0"

add VLAN ID 100 and IP 100.100.10.10 to vEth2

ip link add link vEth2 name vEth2.100 type vlan id 100
ip addr add 100.100.10.10/24 dev vEth2.100
ip link set dev vEth2.100 up


Save/renew/upload the file. The changes take effect ater reboot.

The ifup.sh file is located under
 /mnt/spirent/ttwb/networking/ In STC version later than 5.30 and TTwb test package 5.30
 /home/root/ In STC version older and TTwb test package 5.13


Attention:
- All the changed IP must not be the same or in the same subnetwork as the management port.
- All physical interfaces like vEth0, vEth1 etc must not belong to the same subnetwork, like 172.16.20.51, 172.16.20.62

Product : Tool Handling