22.10.2013 Views

FTOS Configuration Guide for Z9000 System - Force10 Networks

FTOS Configuration Guide for Z9000 System - Force10 Networks

FTOS Configuration Guide for Z9000 System - Force10 Networks

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

For in<strong>for</strong>mation on enabling and configuring Spanning Tree Protocol, see Chapter 10, Layer 2, on page 47.<br />

To view the interfaces in Layer 2 mode, use the command show interfaces switchport in the EXEC mode.<br />

Configure Layer 3 (Network) Mode<br />

When you assign an IP address to a physical interface, you place it in Layer 3 mode. Use the ip address<br />

command and no shutdown command in INTERFACE mode to enable Layer 3 mode on an individual<br />

interface. In all interface types except VLANs, the shutdown command prevents all traffic from passing<br />

through the interface. In VLANs, the shutdown command prevents Layer 3 traffic from passing through the<br />

interface. Layer 2 traffic is unaffected by the shutdown command. One of the interfaces in the system must<br />

be in Layer 3 mode be<strong>for</strong>e you configure or enter a Layer 3 protocol mode (<strong>for</strong> example, OSPF).<br />

Figure 17-5 shows how the show config command displays an example of a Layer 3 interface.<br />

Figure 17-5. show config Command Example of a Layer 3 Interface<br />

<strong>FTOS</strong>(conf-if)#show config<br />

!<br />

interface GigabitEthernet 1/5<br />

ip address 10.10.10.1 /24<br />

no shutdown<br />

<strong>FTOS</strong>(conf-if)#<br />

If an interface is in the incorrect layer mode <strong>for</strong> a given command, an error message is displayed to the<br />

user. For example, in Figure 17-6, the command ip address triggered an error message because the<br />

interface is in Layer 2 mode and the ip address command is a Layer 3 command only.<br />

Figure 17-6. Error Message When Trying to Add an IP Address to Layer 2 Interface<br />

<strong>FTOS</strong>(conf-if)#show config<br />

!<br />

interface GigabitEthernet 1/2<br />

no ip address<br />

switchport<br />

no shutdown<br />

<strong>FTOS</strong>(conf-if)#ip address 10.10.1.1 /24<br />

% Error: Port is in Layer 2 mode Gi 1/2.<br />

<strong>FTOS</strong>(conf-if)#<br />

To determine the configuration of an interface, you can use the show config command in INTERFACE<br />

mode or the various show interface commands in EXEC mode.<br />

To assign an IP address, use both of the following commands in the INTERFACE mode:<br />

Command Syntax Command Mode Purpose<br />

Error message<br />

no shutdown INTERFACE Enable the interface.<br />

Interfaces | 335

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!