3
Addressing
57
Listing Ethernet interfaces
To
list
all
Ethernet
interfaces,
the
CLI
command
is:
Device:/>
show
Interface
EthernetInterface
Interface
Name
IP
Addresses
Routing
Table
‐‐‐‐‐‐‐‐‐‐‐‐‐‐ ‐‐‐‐‐‐‐‐‐‐‐‐ ‐‐‐‐‐‐‐‐‐‐‐‐‐
sfp1
10.1.50.102
main
sfp2
10.6.58.100
main
The
listing
shows
there
are
two
interfaces.
The
IP
address
allocated
to
each
is
shown
along
with
the
routing
table
that
is
associated
with
them.
Changing the IP address of an Ethernet interface
To
change
the
IP
address
on
an
interface,
there
are
two
methods:
•
If
the
IP
address
for
an
object
is
used
by
other
SEG
objects,
such
as
IP
rules,
change
the
IP
address
for
the
object
in
the
SEG
address
book.
For
example,
to
change
the
IPv4
address
of
the
sfp1_ip
object
in
the
address
book,
use
the
CLI
command:
Device:/>
set
Address
IPAddress
sfp1_ip
Address=10.1.1.2
•
Change
the
IP
address
directly
on
the
interface.
For
example,
to
change
the
IP
address
of
the
sfp1_ip
interface,
use
the
CLI
command:
Device:/>
set
Interface
EthernetInterface
sfp1
IPaddress=10.1.1.2
Assigning multiple IP addresses to an Ethernet interface
Multiple
IP
addresses
can
be
assigned
to
a
single
Ethernet
interface
by
adding
addresses
to
the
Ethernet
interface
object.
The
addresses
can
be
a
mixture
of
IPv4
and
IPv6
addresses:
Device:/>
set
Address
IPAddress
sfp1_ip_2
Address=2001:DB8::1
Device:/>
set
Interface
EthernetInterface
sfp1
IPAddress=sfp1_ip,sfp1_ip_2
A
maximum
of
six
IPv4
plus
six
IPv6
addresses
can
be
assigned
to
a
single
Ethernet
interface.
Addresses
in
excess
of
this
number
will
be
ignored.
Enabling and disabling an Ethernet interface
To
disable
the
interface
sfp1
so
that
no
traffic
can
flow
through
it,
the
CLI
command
is:
Device:/>
set
Interface
EthernetInterface
sfp1
‐
disable
To
enable
the
disabled
interface,
the
command
is:
Device:/>
set
Interface
EthernetInterface
sfp1
‐
enable