Establishing Basic IP Connectivity
55
Figure 7-1: Relation between IP Interface
lan
and Ethernet port 0 on slot 0
First the context IP mode is selected for the required IP interface configuration.
SN>
enable
SN#
configure
SN(cfg)#
context ip router
After that a new interface
lan
is created, for which both the IP address and netmask are specified.
SN(ctx-ip)[router]#
interface lan
SN(if-ip)[lan]#
ipaddress 192.168.1.3 255.255.255.0
Next the Ethernet port 0 on slot 0 is selected, the medium is set to 10 Mbit/s in half-duplex mode, and
IP encapsulation for this port is chosen.
SN(if-ip)[lan]#
port ethernet 0 0
SN(prt-eth)[0/0]#
medium 10 half
SN(prt-eth)[0/0]#
encapsulation ip
Afterwards the just defined interface
lan
is bound to the Ethernet port, and then the port is activated.
SN(prt-eth)[0/0]#
bind interface lan router
SN(prt-eth)[0/0]#
no shutdown
As a final point the configuration settings are stored in the startup configuration so as to be available
after the next system reboot.
SN(prt-eth)[0/0]#
copy running-config startup-config
Software Configuration Guide, Revision 1.03