Device:/> set Address IP4Address wan_gw Address=203.0.113.1
Now, set the gateway on the
G2
. interface which is connected to the ISP:
Device:/> set Interface Ethernet G2 DefaultGateway=wan_gw
Next, set the IP address of the
G2_ip
address object which is the IP assigned to the interface:
Device:/> set IP4Address InterfaceAddresses/G2_ip Address=203.0.113.35
Note: Qualifying the names of IP objects in folders
On initial startup of the W20B, cOS Core automatically creates and fills the
InterfaceAddresses
folder in the cOS Core address book with Ethernet interface related
IPv4 address objects.
Note that when an IP address object which is located in a folder is specified in the CLI,
the object name must be qualified with the name of its parent folder. For example, to
reference the address
G2_ip
, it must be qualified with the folder name
InterfaceAddresses
so it becomes
InterfaceAddresses/G2_ip
.
If an object is not contained in a folder and is at the top level of the address book then no
qualifying parent folder name is needed.
Now, set the IP object
G2_net
. which will be the IPv4 network of the connecting interface:
Device:/> set IP4Address InterfaceAddresses/G2_net Address=203.0.113.0/24
Before continuing, it is recommended to verify the properties of the
G2
. interface using the
following command:
Device:/> show Interface Ethernet G2
The typical output from this will be similar to the following:
Property
Value
--------------------------
--------------------------
Name:
G2
IP:
InterfaceAddresses/G2_ip
Network:
InterfaceAddresses/G2_net
DefaultGateway:
wan_gw
Broadcast:
203.0.113.255
PrivateIP:
<empty>
NOCHB:
<empty>
MTU:
1500
Metric:
100
DHCPEnabled:
No
EthernetDevice:
0:G2
1:<empty>
AutoSwitchRoute:
No
AutoInterfaceNetworkRoute:
Yes
AutoDefaultGatewayRoute:
Yes
ReceiveMulticastTraffic:
Auto
MemberOfRoutingTable:
All
Comments:
<empty>
Setting the default gateway on the interface has the additional effect that cOS Core
automatically creates a route in the default
main
routing table that has the network
all-nets
routed on the interface. This means that we do not need to explicitly create this route.
Even though an
all-nets
route is automatically added, no traffic can flow without the addition of
an
IP Policy
which explicitly allows traffic to flow. Let us assume we want to allow web browsing
Chapter 4: cOS Core Configuration
58
Содержание NetWall W20A
Страница 12: ... i Orange when cOS Core is running normally Chapter 1 W20B Product Overview 12 ...
Страница 14: ...Chapter 1 W20B Product Overview 14 ...
Страница 31: ...Chapter 3 W20B Installation 31 ...
Страница 70: ...Chapter 4 cOS Core Configuration 70 ...
Страница 80: ...Appendix B Declarations of Conformity 80 ...
Страница 81: ...Appendix B Declarations of Conformity 81 ...