I Commands
This chapter describes the system management commands that begin with I.
ip access-list (session)
form of this command.
Syntax Description
|
Name of the IPv4 ACL. The name can be up to 64 alphanumeric characters and cannot contain a space or quotation mark. |
Command Default
No IPv4 ACLs are defined by default.
Command Modes
Global session configuration mode
Command History
|
|
4.0(0)N1(1) |
This command was introduced. |
Examples
This example shows how to create an IPv4 ACL for a configuration session:
switch# configure session MySession1
switch(config-s)# ip access-list myACL
Related Commands
|
|
|
Creates a configuration session. |
|
Configures a deny rule in an IPv4 ACL. |
|
Configures a permit rule in an IPv4 ACL. |
|
Displays the contents of the session. |
ip dns source-interface
form of this command.
}]
}]
Syntax Description
|
Specifies the Ethernet interface to use as the source interface. The slot number is from 1 to 255 and the port number is from 1 to 128. |
|
Specifies the loopback interface to use as the source interface. The range of values is from 0 to 1023. |
|
(Optional) Specifies the virtual routing and forwarding (VRF) instance. |
|
(Optional) VRF name. The name is case sensitive and can be a maximum of 32 characters. |
|
(Optional) Specifies the default VRF. |
|
(Optional) Specifies the management VRF. |
Command Modes
Global configuration mode
Command History
|
|
5.1(3)N1(1) |
This command was introduced. |
Usage Guidelines
This command does not require a license.
Examples
This example shows how to configure an Ethernet interface as the source interface for a DNS lookup:
switch# configure terminal
switch(config)# ip dns source-interface ethernet 1/5
Related Commands
|
|
|
Enables the DNS lookup feature. |
|
Displays information about the DNS source interfaces. |
ip domain-list
command. To disable the IP domain list, use the no form of the command.
]
]
Syntax Description
|
Specifies the domain name for the IP domain list. The name can be any case-sensitive, alphanumeric string up to 63 characters. |
|
(Optional) Specifies the virtual routing and forwarding (VRF) to use to resolve the domain domain name for the IP domain list. The name can be any case-sensitive, alphanumeric string up to 32 characters. |
Command Modes
VRF context configuration mode
Command History
|
|
5.0(3)N1(1) |
This command was introduced. |
Usage Guidelines
command to configure additional domain names for the device. Use the vrf context command to enter the VRF context mode to configure additional domain names for a particular VRF.
Examples
This example shows how to configure the IP domain list for the default VRF:
switch(config)# ip domain-list Mysite.com
This example shows how to configure the IP domain list for the management VRF:
switch(config)# vrf context management
switch(config-vrf)# ip domain-list Mysite.com
This example shows how to configure the IP domain list for the default VRF to use the management VRF as a backup if the domain name cannot be resolved through the default VRF:
switch(config)# vrf context management
switch(config)# ip domain-name Mysite.com use-vrf management
switch(config)# ip name-server 192.0.2.1
switch(config)# ip domain-list Mysite2.com
Related Commands
|
|
|
Displays information about the IP domain name configuration. |
ip domain-lookup
form of this command to disable this feature.
Syntax Description
This command has no arguments or keywords.
Command Modes
Global configuration mode
Command History
|
|
5.0(3)N1(1) |
This command was introduced. |
Usage Guidelines
command to enable DNS.
Examples
This example shows how to configure the DNS server lookup feature:
switch(config)# vrf context management
switch(config)# ip domain-name Mysite.com use-vrf management
switch(config)# ip name-server 192.0.2.1
switch(config)# ip domain-lookup
Related Commands
|
|
|
Displays information about the DNS. |
ip domain-name
form of the command.
]
]
Syntax Description
|
Domain name. The name can be any case-sensitive, alphanumeric string up to 63 characters. |
|
(Optional) Specifies the virtual routing and forwarding (VRF) to use to resolve the domain name. The name can be any case-sensitive, alphanumeric string up to 32 characters. |
Command Modes
VRF context configuration mode
Command History
|
|
5.0(3)N1(1) |
This command was introduced. |
Usage Guidelines
command to configure the domain name for the device. Use the vrf context command to enter the VRF context mode to configure the domain monastery for a particular VRF.
Examples
This example shows how to configure the IP domain name for the default VRF:
switch(config)# ip domain-name Mysite.com
This example shows how to configure the IP domain name for the management VRF:
switch(config)# vrf context management
switch(config-vrf)# ip domain-name Mysite.com
This example shows how to configure the IP domain name for the default VRF to use the management VRF as a backup if the domain name cannot be resolved through the default VRF:
switch(config)# vrf context management
switch(config)# ip domain-name Mysite.com use-vrf management
Related Commands
|
|
|
Configures the IP domain list. |
|
Enables the Domain Name Server (DNS) lookup feature. |
|
Displays information about the IP domain name configuration. |
ip host
form of this command.
]
]
Syntax Description
|
can be any case-sensitive, alphanumeric string up to 80 characters. |
|
IPv4 address in the x.x.x.x format. |
|
(Optional) Up to five additional IPv4 addresses in the x.x.x.x format. |
Command Modes
Global configuration mode
Command History
|
|
5.0(3)N1(1) |
This command was introduced. |
Usage Guidelines
command to add a static hostname to DNS.
Examples
This example shows how to configure a static hostname:
switch(config)# ip host mycompany.com 192.0.2.1
Related Commands
|
|
|
Displays information about the IP domain name configuration. |
ip name-server
form of the command.
Syntax Description
|
IP address for the name server. |
|
(Optional) Specifies the virtual routing and forwarding (VRF) to use to reach the name-server. The name can be any case-sensitive, alphanumeric string up to 32 characters. |
Command Modes
VRF context configuration mode
Command History
|
|
5.0(3)N1(1) |
This command was introduced. |
Usage Guidelines
command to configure the name server for the device. Use the vrf context command to enter the VRF context mode to configure the domain names for a particular VRF.
Examples
This example shows how to configure the IP name server for the default VRF:
switch(config)# vrf context management
switch(config)# ip domain-name Mysite.com use-vrf management
switch(config)# ip name-server 192.0.2.1
This example shows how to configure the IP name server for the management VRF:
switch(config)# vrf context management
switch(config-vrf)# ip name-server 192.0.2.1
This example shows how to configure the IP name server for the default VRF to use the management VRF as a backup if the IP name server cannot be reached through the default VRF:
switch(config)# vrf context management
switch(config)# ip domain-name Mysite.com use-vrf management
switch(config)# ip name-server 192.0.2.1 use-vrf management
Related Commands
|
|
|
Defines a list of domains. |
|
Enables DNS-based host name-to-address translation. |
|
Displays information about the IP domain name configuration. |
|
Creates a virtual routing and forwarding (VRF) instance. |
ip port access-group (session)
form of this command.
Syntax Description
|
Name of the IPv4 ACL. The name can be up to 64 alphanumeric, case-sensitive characters long. |
|
Specifies that the ACL applies to inbound traffic. |
|
Specifies that the ACL applies to outbound traffic. |
Command Modes
Session interface configuration mode
Command History
|
|
4.0(0)N1(1) |
This command was introduced. |
Examples
This example shows how to apply an IPv4 ACL named ip-acl-01 to the Ethernet interface 1/2 as a port ACL:
switch# configure session MySession1
switch(config-s)# interface ethernet 1/2
switch(config-s-if)# ip port access-group ip-acl-01 in
This example shows how to remove an IPv4 ACL named ip-acl-01 from Ethernet interface 1/2:
switch(config-s)# interface ethernet 1/2
switch(config-s-if)# no ip port access-group ip-acl-01 in
Related Commands
|
|
|
Displays all ACLs. |
|
Displays the contents of the session. |