Configuring the Ethernet Interface
•Using Configuration Mode to Configure the Ethernet Interface, page 29
•Using the setup Command Facility to Configure the Ethernet Interface, page 29
Using Configuration Mode to Configure the Ethernet Interface
Use the following procedure to perform a basic configuration of the Ethernet interface in configuration mode:
Step 1 At the
Router# configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#
Step 2 At the configuration mode prompt, specify the Ethernet interface by entering the subcommand interface, followed by the type (ethernet) and port (0) as follows:
Router(config)# interface ethernet 0
Step 3 Determine the physical Ethernet connection you want to use
where type is RJ45 or MII. The system default is RJ45.
Step 4 If IP routing is enabled on the system, you can assign an IP address and subnet mask to the interface with the ip address configuration subcommand, as in the following example:
Step 5 Add any additional configuration subcommands required to enable or disable routing protocols (such as the no ip
Step 6 Change the shutdown state to up and enable the Ethernet interface as follows:
Step 7 After you include all the configuration subcommands necessary to complete the configuration, press
Step 8 Write the new configuration to nonvolatile memory as follows:
Router# copy
[OK]
Router#
Using the setup Command Facility to Configure the Ethernet Interface
In the following example of an Ethernet configuration using the setup command facility, the Ethernet interface is configured using IP and CLNS. (In this example, you want to use IP, CLNS, and the default
Enter the setup facility using the setup command and respond to prompts as appropriate for your needs, using your own address and mask for the setup prompts.
Using Configuration Mode to Configure the Ethernet Interface
| 29 |
| |
|
|