2.9 Configuring an IP Address

The switch ships with the default IP address 192.168.0.1/24. Connect via the serial port in order to assign the switch an IP address on your network.

The physical ports (or switchports) of the IC35516 are L2 ports, and cannot have an IP address assigned to them. By default, each switchport belongs to VLAN 1, a virtual interface (veth1) that may be assigned a primary, as well as any number of secondary, IP addresses. Use the following instructions to configure an IP address to the switch. The network administrator may later assign primary IP addresses to any other VLAN created.

Follow the steps below to change the switch’s IP address.

1.Connect to the console and press Enter at the Password prompt, as described above.

2.The screen will display the user mode prompt, Router>.

3.Type enable. The new prompt is Router#.

4.Type configure terminal. The new prompt is Router(config)#.

5.The default IP address is assigned to the veth1 interface. Type interface veth1. The new prompt is

Router(config-if-veth1)#.

6.Type ip address and the new address. Your screen will look like this example:

Router> enable

Router# configure terminal Router(config)# interface veth1

Router(config-if-veth1)# ip address 192.168.123.254 255.255.255.0 Router(config-if-veth1)# end

Router# show interface veth1 Veth1 is up, line protocol is up

Hardware is virtual interface VLAN 1, address is 00:00:94:D2:56:FA Encapsulation ARPA, Flags: <UP,BROADCAST,RUNNING,MULTICAST>

inet 192.168.123.254/24 broadcast 192.168.123.255 ARP Type: ARPA, ARP Timeout: 14400 seconds

Router# write file

Writing current-config to startup-config. Please wait.

Configuration saved to startup-config file

Router#

It is also acceptable to enter the subnet mask by typing ip address 192.168.123.254/24. Use the show interface veth1 command from privileged mode to see the new IP address. The new IP address automatically writes over the default IP address.

See Chapter 5 for more information on assigning IP addresses to interfaces.

2.9.1 Setting a Default IP Gateway Address

To define the default IP gateway for the switch, insert a static route:

Router(config)# ip route 0.0.0.0 255.255.255.255 <gateway IP> <mask>

17

Page 17
Image 17
Asante Technologies 35516 Configuring an IP Address, Setting a Default IP Gateway Address, Routerconfig-if-veth1#