Example – Westermo RedFox Series User Manual
Page 23

Westermo OS Management Guide
Version 4.17.0-0
Example
example:/#> show iface
Press Ctrl-C or Q(uit) to quit viewer, Space for next page, <CR> for next line.
Interface Name
Oper
Address/Length
MTU
MAC/PtP Address
----------------
----
------------------
-----
---------------------------
lo
UP
127.0.0.1/8
16436
N/A
vlan1
UP
192.168.2.200/24
1500
00:07:7c:10:de:e1
169.254.145.230/16
------------------------------------------------------------------------------
example:/#>
6. Changing IP address and netmask: To change the switch IP addressing mode
(”static” instead of ”DHCP”), set a static address and netmask, and to skip
secondary addresses, use CLI commands ”configure”, ”iface vlan1”,
”inet static”, ”address <IPV4ADDRESS/LEN>”, ”no address secondary”
and ”end” as shown below. This example is based on the setup in step
and configures the switch with an address (192.168.55.100/24) on the same
IP subnet as the PC.
Example
example:/#> configure
example:/config/#> iface vlan1
example:/config/iface-vlan1/#> inet static
example:/config/iface-vlan1/#> address 192.168.55.100/24
example:/config/iface-vlan1/#> no address secondary
Remove all secondary IP addresses, are you sure (y/N)? y
Removing all secondary IPs!
example:/config/iface-vlan1/#> end
example:/config/#> end
Stopping DHCP Clients ...................................... [ OK ]
Configuration activated.
Remember "copy run start" to save to flash (NVRAM).
example:/#> show iface
Press Ctrl-C or Q(uit) to quit viewer, Space for next page, <CR> for next line.
Interface Name
Oper
Address/Length
MTU
MAC/PtP Address
----------------
----
------------------
-----
---------------------------
lo
UP
127.0.0.1/8
16436
N/A
vlan1
UP
192.168.55.100/24
1500
00:07:7c:10:de:e1
------------------------------------------------------------------------------
example:/#>
7. Set default gateway IP address: The figure below shows the same network
setup, but with a router attached to the IP subnet.
With this setup you would like to configure a default gateway IP address
to allow management of the switch from outside the local network. This
➞ 2015 Westermo Teleindustri AB
23