ixEnablePortArpResponse

ixEnablePortArpResponse - enable ARP response on a single port

SYNOPSIS

ixEnableArpResponse mapType chassisID cardID portID [write]

DESCRIPTION

The ixEnablePortArpResponse gets the MAC and IP address for a single port, sets up the address table and enables the ARP response engine for the port. IP configuration must have been performed for this command to succeed.

ARGUMENTS
mapType

(By value) The type of IP to MAC mapping to be used. One of:

Option Value Usage
oneIpToOneMAC 0 Each IP address is mapped to a single MAC address.
manyIpToOneMAC 1

All the IP addresses for a port are mapped to a single MAC address.

chassisID

(By value) The ID number of the chassis.

cardID

(By value) The ID number of the card.

portID

(By value) The ID number of the port.

write

(By value) (Optional) Valid values:

write: the action is committed to hardware

noWrite: the action is not committed to hardware but just set in IxHAL (default)

RETURNS
0

No error; the command was successfully delivered to the IxServer.

1

Error; the command was delivered to the IxServer but it could not process the message.

EXAMPLES

package require IxTclHal

set host galaxy

set username user

# Check if we're running on UNIX - connect to the TCL Server

# which must be running on the chassis

if [isUNIX] {

if [ixConnectToTclServer $host] {

ixPuts "Could not connect to $host"

return 1

}

}

# Now connect to the chassis

if [ixConnectToChassis $host] {

ixPuts $::ixErrorInfo

return 1

}

# Get the chassis ID to use in port lists

set chas [ixGetChassisID $host]

set cardA 1

set portA 1

set portList [list [list $chas $cardA $portA]]

# Login before taking ownership

if [ixLogin $username] {

ixPuts $::ixErrorInfo

return 1

}

# Take ownership of the ports we'll use

if [ixTakeOwnership $portList] {

ixPuts $::ixErrorInfo

return 1

}

ip setDefault

ip set $chas $cardA $portA

if {[ixEnablePortArpResponse $::oneIpToOneMAC $chas $cardA $portA] != 0} {

ixPuts "Could not enable ARP response for $chas:$cardA:$portA"

}

# Let go of the ports that we reserved

ixClearOwnership $portList

# Disconnect from the chassis we're using

ixDisconnectFromChassis $host

# If we're running on UNIX, disconnect from the TCL Server

if [isUNIX] {

ixDisconnectTclServer $host

}

SEE ALSO

ixDisableArpResponse, ixDisablePortArpResponse, ixEnableArpResponse