கையேடு:PPC64/நிறுவல்/வலையமைத்தல்

From Gentoo Wiki
Jump to:navigation Jump to:search
This page is a translated version of the page Handbook:PPC64/Installation/Networking and the translation is 100% complete.
PPC64 கையேடு
நிறுவல்
நிறுவலைப் பற்றி
ஊடகத்தைத் தேர்ந்தெடுத்தல்
வலையமைப்பை உள்ளமைத்தல்
தகடுகளை ஆயத்தப்படுத்தல்
நிலை3 ஐ நிறுவுதல்
அடிப்படை முறைமையை நிறுவுதல்
கருநிரலை உள்ளமைத்தல்
முறைமையை உள்ளமைத்தல்
கருவிகளை நிறுவுதல்
துவக்க ஏற்றியை உள்ளமைத்தல்
நிறுவலை முடித்தல்
சென்டூவோடு வேளை செய்தல்
Portage முன்னுரை
USE கொடிகள்
Portage தனிச்சிறப்புகள்
Init குறுநிரல் முறைமை
சூழல் மாறிகள்
Portage ஓடு வேளை செய்தல்
கோப்புகள் மற்றும் அடைவுகள்
மாறிகள்
மென்பொருள் கிளைகளைக் கலக்குதல்
கூடுதல் கருவிகள்
தனிப்பயன் தொகுப்பு கருவூலம்
மேம்பட்ட தனிச்சிறப்புகள்
வலையமைப்பு உள்ளமைவு
தொடங்குதல்
மேம்பட்ட உள்ளமைவு
கூறுநிலை வலையமாக்கம்
கம்பியில்லா
செயல்பாடுகளைச் சேர்த்தல்
இயக்க மேலாண்மை


ஒருவேளை ஏற்கனவே வேளை செய்து கொண்டிருக்கலாம்?

முறைமை DHCP சேவையகத்தைக் கொண்ட ஈத்தர்வலை வலையமைப்போடு இணைக்கப்பட்டிருந்தால், பெரும்பாலான நேரங்களில் வலையமைப்பு உள்ளமைவுகள் தானாக ஏற்கனவே அமைக்கப்பட்டிருக்க வாய்ப்புகள் அதிகம். அப்படியென்றால் நிறுவல் குறுந்தகட்டில் உள்ள வலையமைப்பை-சோதிக்கும் கட்டளைகளான ssh, scp, ping, irssi, wget மற்றும் links உடனடியாக வேளை செய்யும்.

DHCP ஐ பயன்படுத்துதல்

DHCP (மாறும் புரவலன் உள்ளமைவு வரைமுறை) தானாக வலையமைப்பு தகவல்களை (IP முகவரி, வலைமுகமூடி, ஒலிபரப்பு முகவரி, தலைவாயில், பெயர் சேவையகங்கள் முதலியன) பெறுதலைச் சாத்தியமாக்குகிறது. DHCP சேவையகம் வலையமைப்பில் இருந்தால் (அல்லது இணையச் சேவையாளர் DHCP சேவையை வழங்கியிருந்தால்) மட்டுமே இது வேளை செய்யும். வலையமைப்பு இடைமுகம் இவ்வகை தகவல்களைத் தானியக்கமாகப் பெற, dhcpcd ஐ பயன்படுத்தவும்:

DHCP requires that a server be running on the same Layer 2 (Ethernet) segment as the client requesting a lease. DHCP is often used on RFC1918 (private) networks, but is also used to acquire public IP information from ISPs.

துணுக்கு
Official Gentoo boot media runs dhcpcd automatically at startup. This behavior can be disabled by adding the nodhcp argument to the boot media kernel commandline.

If it is not already running, dhcpcd can be started on enp1s0 with:

root #dhcpcd eth0

DHCP சேவையகத்தால் வழங்கப்பட்ட புரவலன் பெயர் மற்றும் திரளப்பெயரை முறைமை பயன்படுத்திக் கொண்டிருக்கிறது என சில வலையமைப்பு மேலாளர்கள் கருதுவர். இந்த சூழலில் இதைப் பயன்படுத்தவும்:

root #dhcpcd -HD eth0

To stop dhcpcd, -x can be used:

root #dhcpcd -x
sending signal Term to pid 10831
waiting for pid 10831 to exit
இதையும் காண்க
Dhcpcd usage

வலையமைப்பை சோதித்தல்

A properly configured default route is a critical component of Internet connectivity, route configuration can be checked with:

root #ip route
default via 192.168.0.1 dev enp1s0

If no default route is defined, Internet connectivity is unavailable, and additional configuration is required.

Basic internet connectivity can be confirmed with a ping:

root #ping -c 3 1.1.1.1
துணுக்கு
It's helpful to start by pinging a known IP address instead of a hostname. This can isolate DNS issues from basic Internet connectivity issues.

Outbound HTTPS access and DNS resolution can be confirmed with:

root #curl --location gentoo.org --output /dev/null

இவையெல்லாம் சரியாக வேளை செய்தால், இப்பகுதியின் மீதமுள்ள வழிமுறைகளைத் தவிர்த்துவிட்டு நேரடியாக நிறுவல் வழிமுறைகளின் அடுத்த பகுதியான (தகடுகளை ஆயத்தப்படுத்துதல்) பகுதிக்குச் செல்லலாம்.

If curl reports an error, but Internet-bound pings work, DNS may need configuration.

If Internet connectivity has not been established, first interface information should be verified, then:

இடைமுக பெயர்களை அறிந்துகொள்ளுதல்

If networking doesn't work out of the box, additional steps must be taken to enable Internet connectivity. Generally, the first step is to enumerate host network interfaces.

ifconfig கட்டளைக்கு மாற்றாக இடைமுக பெயர்களை அறிந்துகொள்ள ip கட்டளையையும் பயன்படுத்தலாம். எடுத்துக்காட்டாக ip addr என்னும் கட்டளையின் வெளியீட்டைப் பின்வருமாறு காணலாம் (இது மற்றொரு முறைமையிலிருந்து எடுக்கப்பட்ட வெளியீடு என்பதால் மேலுள்ள எடுத்துக்காட்டை விட மாறுபட்டதாக இருக்கலாம்):

The link argument can be used to display network interface links:

root #ip link
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
4: enp1s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP mode DEFAULT group default qlen 1000
    link/ether e8:40:f2:ac:25:7a brd ff:ff:ff:ff:ff:ff

The address argument can be used to query device address information:

root #ip addr
2: eno1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
    link/ether e8:40:f2:ac:25:7a brd ff:ff:ff:ff:ff:ff
    inet 10.0.20.77/22 brd 10.0.23.255 scope global eno1
       valid_lft forever preferred_lft forever
    inet6 fe80::ea40:f2ff:feac:257a/64 scope link 
       valid_lft forever preferred_lft forever

The output of this command contains information for each network interface on the system. Entries begin with the device index, followed by the device name: enp1s0.

துணுக்கு
வழக்கமான ifconfig கட்டளையை இட்ட பிறகும் இடைமுக பெயர்கள் எதுவும் தோன்றவில்லையென்றால், அதே கட்டளையை -a என்னும் விருப்பத்தேர்வோடு சேர்த்து முயற்சி செய்து பார்க்கவும். இந்த விருப்பத்தேர்வு பயன்கூறு நிரலை முறைமையில் உள்ள இயங்கு நிலையிலுள்ள அல்லது இயங்கு நிலையில் இல்லாத எல்லா வலையமைப்பு இடைமுகங்களையும் காண்பிக்கக் கட்டாயப்படுத்துகிறது. ifconfig -a கட்டளையும் எந்தவொரு விளைவையும் தரவில்லை என்றால் வன்பொருள் பழுதாகியிருக்கலாம் அல்லது இடைமுகத்திற்கான இயக்கி கர்னலில் ஏற்றப்படாமல் இருக்கலாம். இவ்விரு சூழலும் இந்த கையேட்டிற்கு அப்பாற்பட்டவை. உதவிக்கு #gentoo (webchat) ஐ தொடர்புகொள்ளவும்.

இதைத் தொடர்ந்து வரும் பகுதிகளில், இயக்கத்தில் உள்ள இடைமுகத்தின் பெயர் eth0 என்னும் அனுமானத்தில் கையேடு நகரும்.

முன்னறிந்து கொள்ளக் கூடிய வலையமைப்பு இடைமுக பெயர்களில் ஏற்படும் மாற்றத்தின் விளைவாக, முறைமையில் உள்ள இடைமுக பெயர் பழைய eth0 பெயரிடல் வழக்கத்தை விடச் சற்று மாறுபட்டிருக்கும். அண்மை நிறுவல் ஊடகம் eno0, ens1 அல்லது enp5s0 போன்ற வழக்கமான வலையமைப்பு இடைமுக பெயர்களைக் காண்பிக்கலாம். உள்ளூர் வலையமைப்பிற்கு தொடர்புள்ள IP முகவரியைக் கொண்ட ifconfig கட்டளை அளிக்கும் வெளியீட்டில் இடைமுகத்தைத் தேடவும்.

Optional: Application specific configuration

The following methods are not generally required, but may be helpful in situations where additional configuration is required for Internet connectivity.

விரும்பினால்: ஏதாவது பதிலாளிகளை உள்ளமைத்தல்

இணையத்தை பதிலாளி மூலம் அணுகினால், நிறுவலின் போது பதிலாளி விவரங்களை அமைப்பது கட்டாய தேவையாகும். பதிலாளியை வரையறுப்பது எளிய செயலாகும்: இதற்கு பதிலாளியின் சேவையக விவரங்கள் அடங்கிய ஒரு மாறியை வரையறுத்தால் போதுமானது.

Certain text-mode web browsers such as links can also make use of environment variables that define web proxy settings; in particular for the HTTPS access it also will require the https_proxy environment variable to be defined. While Portage will be influenced without passing extra run time parameters during invocation, links will require proxy settings to be set.

பெரும்பாலான சூழல்களில், சேவையகத்தின் புரவலன் பெயரைக் கொண்டு மாறியை வரையறுத்தால் போதும். எடுத்துக்காட்டாக, பதிலாளியின் பெயர் proxy.gentoo.org என இருந்து அதன் துறை 8080 ஆக இருந்தால்.

குறிப்பு
The # symbol in the following commands is a comment. It has een added for clarity only and does not need to be typed when entering the commands.

HTTP பதிலாளியை அமைப்பதற்கு (HTTP மற்றும் HTTPS போக்குவரத்துகளுக்கு):

root #export http_proxy="http://proxy.gentoo.org:8080"

ஒருவேளை பதிலாளிக்கு பயனர்பெயர் மற்றும் கடவுச்சொல் தேவைப்பட்டால், மாறிக்கான பின்வரும் தொடரியலை பயன்படுத்தவும்:

குறிமுறை பதிலாளி மாறிக்கு பயனர்பெயர்/கடவுச்சொல் ஆகியவற்றை சேர்த்தல்
http://username:password@proxy.gentoo.org:8080

Start links using the following parameters for proxy support:

user $links -http-proxy ${http_proxy} -https-proxy ${https_proxy}

FTP பதிலாளியை அமைப்பதற்கு:

root #export ftp_proxy="ftp://proxy.gentoo.org:8080"

Start links using the following parameter for a FTP proxy:

user $links -ftp-proxy ${ftp_proxy}

RSYNC பதிலாளியை அமைப்பதற்கு:

root #export RSYNC_PROXY="proxy.gentoo.org:8080"

இதற்குப் பதிலாக: PPP ஐ பயன்படுத்துதல்

If PPPoE is required for Internet access, the Gentoo boot media includes the pppoe-setup script to simplify ppp configuration.

During setup, pppoe-setup will ask for:

  • The name of the Ethernet interface connected to the ADSL modem.
  • The PPPoE username and password.
  • DNS server IPs.
  • Whether or not a firewall is needed.
root #pppoe-setup
root #pppoe-start

In the event of failure, credentials in /etc/ppp/pap-secrets or /etc/ppp/chap-secrets should be verified. If credentials are correct, PPPoE Ethernet interface selection should be checked.

இதற்குப் பதிலாக: PPTP ஐ பயன்படுத்துதல்

PPTP ஆதரவு தேவைப்பட்டால் நிறுவல் குறுந்தகட்டில் அளிக்கப்பட்டுள்ள pptpclient ஐ பயன்படுத்தவும். ஆனால் அதற்கு முன் உள்ளமைவு சரியாக உள்ளனவா என்பதைச் சரிபார்த்துக் கொள்ளவும். /etc/ppp/pap-secrets அல்லது /etc/ppp/chap-secrets கோப்பில் சரியான பயனர்பெயர்/கடவுச்சொல் சேர்க்கை உள்ளவாறு திருத்தவும்:

Edit /etc/ppp/pap-secrets or /etc/ppp/chap-secrets so it contains the correct username/password combination:

root #nano -w /etc/ppp/chap-secrets

பிறகு தேவைப்பட்டால் /etc/ppp/options.pptp ஐ சரிசெய்துகொள்ளவும்:

root #nano -w /etc/ppp/options.pptp

எல்லாம் முடிந்தவுடன், சேவையகத்தோடு இணைக்க pptp கட்டளையை (options.pptp இல் அமைக்க முடியாத விருப்பத்தேர்வுகளோடு) இயக்கவும்:

root #pptp <server ipv4 address>

கம்பியில்லா அணுகலை ஆயத்தப்படுத்தல்

எச்சரிக்கை
Do not use WEP unless it is the only option. WEP provides essentially no security over an open network.
குறிப்பு
iw கட்டளைக்கான ஆதரவு கட்டமைப்பு-சார்ந்ததாக இருக்கலாம். இந்த கட்டளை வேளை செய்யவில்லை என்றால் உங்கள் இப்போதைய கட்டமைப்பில் net-wireless/iw தொகுப்பு இருப்பில் உள்ளதா எனப் பார்க்கவும். net-wireless/iw தொகுப்பு நிறுவப்படாத வரை iw கட்டளையைப் பயன்படுத்த இயலாது.

கம்பியில்லா (802.11) அட்டையைப் பயன்படுத்தும்போது, மேற்கொண்டு செல்வதற்கு முன் கம்பியில்லா அமைப்புகளை உள்ளமைக்கப்பட்டிருக்க வேண்டும். அட்டையில் உள்ள இப்போதைய கம்பியில்லா அமைப்புகளைக் காண iw கட்டளையைப் பயன்படுத்தலாம். iw கட்டளையை இட்ட பின் திரையில் இவ்வாறாகத் தோன்றும்:

root #iw dev wlp9s0 info
Interface wlp9s0
	ifindex 3
	wdev 0x1
	addr 00:00:00:00:00:00
	type managed
	wiphy 0
	channel 11 (2462 MHz), width: 20 MHz (no HT), center1: 2462 MHz
	txpower 30.00 dBm

தற்போதுள்ள இணைப்பை சரிபார்க்க:

root #iw dev wlp9s0 link
Not connected.

அல்லது

root #iw dev wlp9s0 link
Connected to 00:00:00:00:00:00 (on wlp9s0)
	SSID: GentooNode
	freq: 2462
	RX: 3279 bytes (25 packets)
	TX: 1049 bytes (7 packets)
	signal: -23 dBm
	tx bitrate: 1.0 MBit/s
குறிப்பு
சில கம்பியில்லா அட்டைகள் wlp9s0 ற்கு பதிலாக wlan0 அல்லது ra0 என்னும் சாதன பெயர்களை கொண்டிருக்கும். சரியான சாதன பெயரை அறிய ip link என்னும் கட்டளையை இயக்கவும்.

பெரும்பாலான பயனர்களுக்கு, வலையமைப்போடு இணைப்பதற்கு ESSID (என அழைக்கப்படும் கம்பியில்லா வலையமைப்பின் பெயர்) மற்றும் விரும்பினால் WEP சாவி ஆகிய இவ்விரண்டு அமைப்புகள் மட்டுமே தேவைப்படும்.

  • முதலில் இடைமுகம் இயக்கத்தில் உள்ளதா என்பதை உறுதிப்படுத்திக்கொள்ளவும்:
root #ip link set dev wlp9s0 up
  • GentooNode என்னும் பெயரைக் கொண்டுள்ள திறந்த வலையமைப்போடு இணைப்பதற்கு:
root #iw dev wlp9s0 connect -w GentooNode
  • பதினறும WEP சாவியைக் கொண்டு இணைப்பதற்கு, d: என்னும் முன்னொட்டைத் தொடர்ந்து சாவியை உள்ளிடவும்:
root #iw dev wlp9s0 connect -w GentooNode key 0:d:1234123412341234abcd
  • ASCII WEP சாவியைக் கொண்டு இணைப்பதற்கு:
root #iw dev wlp9s0 connect -w GentooNode key 0:some-password
குறிப்பு
கம்பியில்லா வலையமைப்பு WPA அல்லது WPA2 வை கொண்டு அமைக்கப்பட்டால், wpa_supplicant ஐ பயன்படுத்த வேண்டி வரும். ஜென்டூ லினக்ஸில் கம்பியில்லா வலையமைப்பை உள்ளமைப்பதை பற்றிய மேலும் விவரங்களுக்கு, சென்டூ கையேட்டில் உள்ள கம்பியில்லா வலையமைப்பு பகுதியைப் படிக்கவும்.

iw dev wlp9s0 link ஐ பயன்படுத்தி கம்பியில்லா அமைப்புகளை உறுதிப்படுத்தவும். கம்பியில்லா வலையமைப்பு வேளை செய்ய தொடங்கினால் IP நிலை வலையமைப்பு விருப்பத்தேர்வுகளை உள்ளமைப்பது பற்றி விவரிக்கும் வலையமைப்பு கலைச்சொற்களைப் புரிந்துகொள்ளுதல் என்னும் அடுத்த பிரிவிற்கு செல்லவும். இல்லையென்றால் முன்னர் விளக்கியது போல் net-setup கருவியை பயன்படுத்தவும்.

தானியக்க வலையமைப்பு உள்ளமைத்தல்

In cases where automatic network configuration is unsuccessful, the Gentoo boot media provides scripts to aid in network configuration. net-setup can be used to configure wireless network information and static IPs.

root #net-setup eth0

net-setup வலையமைப்பு சூழலை பற்றி சில கேள்விகளை கேட்கும். எல்லாம் முடிந்தவுடன் வலைய இணைப்பு வேளை செய்ய வேண்டும். மேலே கூறியவாறு வலைய இணைப்பை சோதித்து பார்க்கவும். சோதனை வெற்றிகரமாக முடிந்தால், வாழ்த்துக்கள்! இப்பகுதியின் மீதமுள்ள வழிமுறைகளைத் தவிர்த்துவிட்டு நேரடியாக நிறுவல் வழிமுறைகளின் அடுத்த பகுதியான தகடுகளை ஆயத்தப்படுத்துதல் பகுதிக்குச் செல்லவும்.

முக்கியமானது
Network status should be tested after any configuration steps are taken. In the event that configuration scripts do not work, manual network configuration is required.

வலையமைப்பு கலைச்சொற்களைப் புரிந்துகொள்ளுதல்

If all of the above fails, the network must be configured manually. This is not particularly difficult, but should be done with consideration. This section serves to clarify terminology and introduce users to basic networking concepts pertaining to manually configuring an Internet connection.

துணுக்கு
Some CPE (Carrier Provided Equipment) combines the functions of a router, access point, modem, DHCP server, and DNS server into one unit. It's important to differentiate the functions of a device from the physical appliance.

Interfaces and addresses

Network interfaces are logical representations of network devices. An interface needs an address to communicate with other devices on the network. While only a single address is required, multiple addresses can be assigned to a single interface. This is especially useful for dual stack (IPv4 + IPv6) configurations.

For consistency, this primer will assume the interface enp1s0 will be using the address 192.168.0.2.

முக்கியமானது
IP addresses can be set arbitrarily. As a result, it's possible for multiple devices to use the same IP address, resulting in an address conflict. Address conflicts should be avoided by using DHCP or SLAAC.
துணுக்கு
IPv6 typically uses StateLess Address AutoConfiguration (SLAAC) for address configuration. In most cases, manually setting IPv6 addresses is a bad practice. If a specific address suffix is preferred, interface identification tokens can be used.

Networks and CIDR

Once an address is chosen, how does a device know how to talk to other devices?

IP addresses are associated with networks. IP networks are contiguous logical ranges of addresses.

Classless Inter-Domain Routing or CIDR notation is used to distinguish network sizes.

  • The CIDR value, often notated starting with a /, represents the size of the network.
    • The formula 2 ^ (32 - CIDR) can be used to calculate network size.
    • Once network size is calculated, usable node count must be reduced by 2.
      • The first IP in a network is the Network address, and the last is typically the Broadcast address. These addresses are special and cannot be used by normal hosts.
துணுக்கு
The most common CIDR values are /24, and /32, representing 254 nodes and a single node respectively.

A CIDR of /24 is the de-facto default network size. This corresponds to a subnet mask of 255.255.255.0, where the last 8 bits are reserved for IP addresses for nodes on a network.

The notation: 192.168.0.2/24 can be interpreted as:

  • The address 192.168.0.2
  • On the network 192.168.0.0
  • With a size of 254 (2 ^ (32 - 24) - 2)
    • Usable IPs are in the range 192.168.0.1 - 192.168.0.254
  • With a broadcast address of 192.168.0.255
    • In most cases, the last address on a network is used as the broadcast address, but this can be changed.

Using this configuration, a device should be able to communicate with any host on the same network (192.168.0.0).

The Internet

Once a device is on a network, how does it know how to talk to devices on the Internet?

To communicate with devices outside of local networks, routing must be used. A router is simply a network device that forwards traffic for other devices. The term default route or gateway typically refers to whatever device on the current network is used for external network access.

துணுக்கு
It's a standard practice to make the gateway the first or last IP on a network.

If an Internet-connected router is available at 192.168.0.1, it can be used as the default route, granting Internet access.

To summarize:

  • Interfaces must be configured with an address and network information, such as the CIDR value.
  • Local network access is used to access a router on the same network.
  • The default route is configured, so traffic destined for external networks is forwarded to the gateway, providing Internet access.

The Domain Name System

Remembering IPs is hard. The Domain Name System was created to allow mapping between Domain Names and IP addresses.

Linux systems use /etc/resolv.conf to define nameservers to be used for DNS resolution.

துணுக்கு
Many routers can also function as a DNS server, and using a local DNS server can augment privacy and speed up queries through caching.

Many ISPs run a DNS server that is generally advertised to the gateway over DHCP. Using a local DNS server tends to improve query latency, but most public DNS servers will return the same results, so server usage is largely based on preference.

கைமுறையாக வலையமைப்பை உள்ளமைத்தல்

Interface address configuration

முக்கியமானது
When manually configuring IP addresses, the local network topology must be considered. IP addresses can be set arbitrarily; conflicts may cause network disruption.

To configure enp1s0 with the address 192.168.0.2 and CIDR /24:

root #ip address add 192.168.0.2/24 dev enp1s0
துணுக்கு
The start of this command can be shortened to ip a.

Default route configuration

Configuring address and network information for an interface will configure link routes, allowing communication with that network segment:

root #ip route
192.168.0.0/24 dev enp1s0 proto kernel scope link src 192.168.0.2
துணுக்கு
This command can be shortened to ip r.

The default route can be set to 192.168.0.1 with:

root #ip route add default via 192.168.0.1

DNS configuration

Nameserver info is typically acquired using DHCP, but can be set manually by adding nameserver entries to /etc/resolv.conf.

எச்சரிக்கை
If dhcpcd is running, changes to /etc/resolv.conf will not persist. Status can be checked with ps x | grep dhcpcd.

nano is included in Gentoo boot media and can be used to edit /etc/resolv.conf with:

root #nano -w /etc/resolv.conf

Lines containing the keyword nameserver followed by a DNS server IP address are queried in order of definition:

கோப்பு /etc/resolv.confUse Quad9 DNS.
nameserver 9.9.9.9
nameserver 149.112.112.112
கோப்பு /etc/resolv.confUse Cloudflare DNS.
nameserver 1.1.1.1
nameserver 1.0.0.1

DNS status can be checked by pinging a domain name:

root #ping -c 3 gentoo.org

Once connectivity has been verified, continue with Preparing the disks.