PRIMECLUSTER Global Link Services Configuration and Administration Guide: Redundant Line Control Function 4.1 (for Linux) |
Contents
Index
![]() ![]() |
Chapter 3 Environment configuration | > 3.2 System Setup | > 3.2.2 Network configuration |
Verify if the physical interface is inserted into the system using ifconfig command.
Also, if the physical interface is UP, check whether it is marked as "RUNNING". If "RUNNING" is not displayed, the links might be down on the interface. Check the cable switch and HUB speed settings. Use the "ethtool" command to check the link state.
# ifconfig -a eth0 Link encap:Ethernet HWaddr xx:xx:xx:xx:xx:xx inet addr:192.168.70.2 Bcast:192.168.70.255 Mask:255.255.255.0 inet6 addr: fe80::xxx:xxxx:xxxx:xxxx/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:2140 errors:0 dropped:0 overruns:0 frame:0 TX packets:2140 errors:0 dropped:0 overruns:0 carrier:0 collisions:22 txqueuelen:1000 RX bytes:278285 (271.7 KiB) TX bytes:273656 (267.2 KiB) Base address:0xec80 Memory:d2fc0000-d2fe0000 eth1 Link encap:Ethernet HWaddr 0xx:xx:xx:xx:xx:xx inet addr:192.168.71.2 Bcast:192.168.71.255 Mask:255.255.255.0 inet6 addr: fe80::xxx:xxxx:xxxx:xxxx/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:2138 errors:0 dropped:0 overruns:0 frame:0 TX packets:2118 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:278492 (271.9 KiB) TX bytes:273666 (267.2 KiB) Base address:0xecc0 Memory:d2fe0000-d3000000 |
In the above example, it is possible to use eth0 and eth1. For details regarding ifconfig command, refer to the Linux manual.
When using name services such as DNS or NIS, define keywords such as hosts in /etc/nsswitch.conf file to first refer to the local file. This allows to solve the address even if the DNS, NIS or LDAP sever is unreachable. The following is an example of /etc/nsswitch.conf.
# # /etc/nsswitch.conf # # An example Name Service Switch config file. This file should be # sorted with the most-used services at the beginning. # # The entry '[NOTFOUND=return]' means that the search for an # entry should stop if the search in the previous entry turned # up nothing. Note that if the search failed due to some other reason # (like no NIS server responding) then the search continues with the # next entry. # # Legal entries are: # # nisplus or nis+ Use NIS+ (NIS version 3) # nis or yp Use NIS (NIS version 2), also called YP # dns Use DNS (Domain Name Service) # files Use the local files # db Use the local database (.db) files # compat Use NIS on compat mode # hesiod Use Hesiod for user lookups # [NOTFOUND=return] Stop searching if not found so far # # To use db, put the "db" in front of "files" for entries you want to be # looked up first in the databases # # Example: #passwd: db files nisplus nis #shadow: db files nisplus nis #group: db files nisplus nis passwd: files shadow: files group: files #hosts: db files nisplus nis dns hosts: files dns ..... |
GLS allows you to select zebra(ripd) for IPv4 routing daemon. If you are using the system as an IPv4 router, you must configure a routing daemon. Configuration procedure is as follows.
1) When defining static route information, first startup zebra and login to zebra using telnet then proceed with the configuration. For details on zebra configuration, refer to zebra(8) manual.
# telnet localhost zebra |
2) Configure zebra to startup during system startup (when run level is 2, 3, or 5).
# chkconfig --level 235 zebra on |
3) Verify zebra is configured to startup on run level 2, 3, 5.
# chkconfig --list zebra zebra 0:off 1:off 2:on 3:on 4:off 5:on 6:off |
GLS supports radvd(router advertisement daemon for IPv6) for RA (router advertisement) daemon. To use IPv6(dual) on Fast switching mode, you must start RA daemon on the host running GLS in order to transmit RA from virtual interfaces. Other than this purpose, RA daemon is not necessary. The following describes configuration procedure.
1) Define the configuration in /etc/radvd.conf
When transmitting network information (network fec0:1::, prefix length 64) from sha0 with RA(router advertisement), define the configuration description as shown below.
In addition, the difference in the version of radvd needs to define the following kernel parameters.
For details on radvd configuration, refer to radvd manual.
/etc/sysctl.conf
net.ipv6.conf.all.forwarding = 1 |
/etc/radvd.conf
interface sha0 { AdvSendAdvert on; # Sending router advertisements MinRtrAdvInterval 3; MaxRtrAdvInterval 10; prefix fec0:1::0/64 # Sending Prefix fec0:1::0/64 from sha0 { AdvOnLink on; AdvAutonomous on; AdvRouterAddr on; }; }; |
2) Configure radvd to startup during system startup (when run level is 2, 3, or 5).
# chkconfig --level 235 radvd on |
3) Verify radvd is configured to startup on run level 2, 3, 5.
# chkconfig --list radvd radvd 0:off 1:off 2:on 3:on 4:off 5:on 6:off |
Static route configuration on the environment not using IPv4 routing daemon is described below.
Define the default gateway address (GATEWAY). Note that default gateway device (GATEWAYDEV) can not be configured to a physical interface NIC switching mode bundles.
/etc/sysconfig/network-scripts/ifcfg-ethX or /etc/sysconfig/network
GATEWAY=192.168.1.254 |
To configure static route on a routing table, define the configuration on /etc/sysconfig/network-scripts/route-ethX.
/etc/sysconfig/network-scripts/route-ethX
GATEWAY0=192.168.40.10 |
Supporting IPv6(dual) on GLS Fast switching or NIC switching mode, it is required to load IPv6 module on Linux. See the following for configuring IPv6 module.
1) Configure /etc/sysconfig/network to use IPv6 during system startup. Ignore the tunneling configuration, since GLS does not support tunneling feature.
NETWORKING_IPV6=yes |
2) Reboot the system.
# /sbin/shutdown -r now |
3) Verify IPv6 module is loaded.
# lsmod Module Size Used by ipv6 662756 10 |
Contents
Index
![]() ![]() |