Configuring a null interface, Configuring an inloopback interface – H3C Technologies H3C S5560 Series Switches User Manual
Page 33
19
Step Command
Remarks
6.
Bring up the loopback
interface.
undo shutdown
By default, a loopback interface is up.
Configuring a null interface
A null interface is a virtual interface and is always up, but you cannot use it to forward data packets or
configure it with an IP address or link layer protocol. The null interface provides a simpler way to filter
packets than ACL. You can filter undesired traffic by transmitting it to a null interface instead of applying
an ACL. For example, if you specify a null interface as the next hop of a static route to a network segment,
any packets routed to the network segment are dropped.
To configure a null interface:
Step Command
Remarks
1.
Enter system view.
system-view
N/A
2.
Enter null interface view.
interface null 0
Interface Null 0 is the default null
interface on the device and cannot
be manually created or removed.
Only one null interface, Null 0, is
supported on the device. The null
interface number is always 0.
3.
Set the interface description.
description text
The default setting is NULL0 Interface.
4.
Restore the default settings for
the null interface.
default
N/A
Configuring an inloopback interface
An inloopback interface is a virtual interface created by the system, which cannot be configured or
deleted. The physical layer and link layer protocol states of an inloopback interface are always up. All
IP packets sent to an inloopback interface are considered packets sent to the device itself and are not
forwarded.
Displaying and maintaining loopback, null, and
inloopback interfaces
Execute display commands in any view and reset commands in user view.
Task Command
Display information about the specified or all
loopback interfaces.
display interface [ loopback [ interface-number ] ] [ brief
[ description ] ]
display interface [ loopback ] [ brief [ down ] ]
- H3C S5130 Series Switches H3C S5120 Series Switches H3C SR8800 H3C SR6600-X H3C SR6600 H3C MSR 5600 H3C MSR 50 H3C MSR 3600 H3C MSR 30 H3C MSR 2600 H3C MSR 20-2X[40] H3C MSR 20-1X H3C MSR 930 H3C MSR 900 H3C WX6000 Series Access Controllers H3C WX5000 Series Access Controllers H3C WX3000 Series Unified Switches H3C LSWM1WCM10 Access Controller Module H3C LSWM1WCM20 Access Controller Module H3C LSQM1WCMB0 Access Controller Module H3C LSRM1WCM2A1 Access Controller Module H3C LSBM1WCM2A0 Access Controller Module