Due to a ransomware attack, the wiki was reverted to a July 2022 version. . We apologize for the lack of a more recent valid backup.
...
Code Block | ||
---|---|---|
| ||
onos-vm# watch sh switch 00:00:00:00:00:00:00:01 port # OF Port # Status Rcv Bytes Rcv Pkts Rcv Errs Rcv Dropped Rcv CRC Rcv Overruns Rcv Frame Errs Xmit Bytes Xmit Pkts Xmit Errs Xmit Dropped Collisions -|-------------|------|---------|--------|--------|-----------|-------|------------|--------------|----------|---------|---------|------------|---------- 1 1 (s1-eth1) up 1880 22 0 0 0 0 0 5651 80 0 0 0 2 2 (s1-eth2) up 600 8 0 0 0 0 0 4531 68 0 0 0 3 3 (s1-eth3) up 558 7 0 0 0 0 0 4531 68 0 0 0 4 4 (s1-eth4) up 558 7 0 0 0 0 0 4489 67 0 0 0 5 5 (s1-eth5) up 558 7 0 0 0 0 0 4489 67 0 0 0 6 6 (s1-eth6) up 5144 74 0 0 0 0 0 5101 73 0 0 0 7 7 (s1-eth7) up 5046 73 0 0 0 0 0 4999 72 0 0 0 8 8 (s1-eth8) up 4556 68 0 0 0 0 0 4489 67 0 0 0 9 65534 (local) up 0 0 0 0 0 0 0 0 0 0 0 0 Executing sh switch 00:00:00:00:00:00:00:01 port # OF Port # Status Rcv Bytes Rcv Pkts Rcv Errs Rcv Dropped Rcv CRC Rcv Overruns Rcv Frame Errs Xmit Bytes Xmit Pkts Xmit Errs Xmit Dropped Collisions -|-------------|------|---------|--------|--------|-----------|-------|------------|--------------|----------|---------|---------|------------|---------- 1 1 (s1-eth1) up 2076 24 0 0 0 0 0 5847 82 0 0 0 2 2 (s1-eth2) up 600 8 0 0 0 0 0 4531 68 0 0 0 3 3 (s1-eth3) up 558 7 0 0 0 0 0 4531 68 0 0 0 4 4 (s1-eth4) up 558 7 0 0 0 0 0 4489 67 0 0 0 5 5 (s1-eth5) up 558 7 0 0 0 0 0 4489 67 0 0 0 6 6 (s1-eth6) up 5242 75 0 0 0 0 0 5203 74 0 0 0 7 7 (s1-eth7) up 5144 74 0 0 0 0 0 5101 73 0 0 0 8 8 (s1-eth8) up 4556 68 0 0 0 0 0 4489 67 0 0 0 9 65534 (local) up 0 0 0 0 0 0 0 0 0 0 0 0 |
show policy : show the policy information created by operators (NOTE: Configuring switches section describe how to create a policy)
Code Block | ||
---|---|---|
| ||
onos-vm(config)# sh policy
# Policy Id Policy Type Priority Dst Mac Src Mac Ether Type Dst IP IP Protocol Src IP Dst TcpPort Src TcpPort Tunnel Used
-|---------|-----------|--------|-------|-------|----------|----------|-----------|-----------|-----------|-----------|-----------
1 p1 TUNNEL_FLOW 10000 * * 0x2048 7.7.7.7/32 * 10.0.1.1/32 * * t1 |
show tunnel : show the tunnel information created by operators (NOTE: Configuring switches section describe how to create a tunnel)
Code Block | ||
---|---|---|
| ||
onos-vm(config)# sh tunnel
# Id Policies Tunnel Path [Head-->Tail] Label Stack [Outer-->Inner]
-|--|--------|-------------------------|---------------------------
1 t1 [101, 102, 103] [[103]]
|
Configuring switches
configure: enter configuration mode
...
no tunnel <tunnel ID>: remove the tunnel with the tunnel ID. If the tunnel is being used by any policy, then it is not removed.
Code Block | ||
---|---|---|
| ||
onos-vm(config)# sh tunnel # Id Policies Tunnel Path [Head-->Tail] Label Stack [Outer-->Inner] -|--|--------|-------------------------|--------------------------- 1 t1 [101, 102, 103] [[103]] onos-vm(config)# no tunnel t` Error: Invalid argument: Invalid Alphabetic character, followed by alphanumerics: t`; Invalid characters in identifier onos-vm(config)# no tunnel t1 onos-vm(config)# sh tunnel None. |
...