beautypg.com

Dell POWEREDGE M1000E User Manual

Page 649

background image

Fabric OS Command Reference

617

53-1001764-02

portCfg

2

dst_ipaddr

Specifies an optional destination IP address (IPv4 or IPv6). All packets
destined for this IP address are tagged accordingly. If a destination IP
address is not specified, all packets not already tagged will be tagged.
The default is 0.0.0.0.

Examples

To create an IP interface using IPv4:

switch:admin>

portcfg ipif ge0 create 192.168.0.20 255.0.0.0 1500

Operation Succeeded

To create an IP interface using IPv6 with a prefix:

switch:admin>

portcfg ipif ge0 create 2000::22/64 1500

Operation Succeeded

switch:admin>

portshow ipif ge0

Port: ge0

Interface IPv4 Address NetMask Effective MTU Flags

----------------------------------------------------------

0 192.168.0.20 255.255.255.0 1500 U R M

1 192.168.0.21 255.255.255.0 1500 U R M

Interface IPv6 Address Len Effective MTU Flags

---------------------------------------------------------------

2 fe80::205:1eff:fec3:e6b2 64 1500 U R M

3 2000::20 64 1500 U R M

4 2000::21 64 1500 U R M

5 2000::22 64 1500 U R M

Flags: U=Up B=Broadcast D=Debug L=Loopback P=Point2Point R=Running

N=NoArp PR=Promisc M=Multicast S=StaticArp LU=LinkUp

To delete an IP interface:

switch:admin>

portcfg ipif ge0 delete 192.168.0.20

Operation Succeeded

To create a static IP route using an IPv4 destination address, a net mask, and a gateway address:

switch:admin>

portcfg iproute ge0 create 192.42.0.0 255.255.255.0 192.168.0.250

Operation Succeeded

To create a static IP route using IPv6:

switch:admin>

portcfg iproute ge0 create 2000::/64 2000::1:250

Operation Succeeded

switch:admin>

portshow iproute ge0

Port: ge0

IP Address Mask Gateway Metric Flags

-------------------------------------------------------------

192.42.0.0 255.255.255.0 192.168.0.250 0 U G

192.168.0.0 255.255.255.0 * 0 U C

192.168.0.10 255.255.255.255 * 0 U H L

192.168.0.11 255.255.255.255 * 0 U H L

192.168.0.21 255.255.255.255 * 0 U C

192.168.0.250 255.255.255.255 * 0 U H L