26.12.2014 Views

Gentoo Linux AMD64 Handbook

Gentoo Linux AMD64 Handbook

Gentoo Linux AMD64 Handbook

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Chapter 3. Configuring your Network<br />

Automatic Network Detection<br />

Maybe it just works<br />

If your system is plugged into an Ethernet network with a DHCP server, it is very likely that your<br />

networking configuration has already been set up automatically for you. If so, you should be able to<br />

take advantage of the many included network-aware commands on the Installation CD such as ssh,<br />

scp, ping, irssi, wget and links, among others.<br />

If networking has been configured for you, the ifconfig command should list some network interfaces<br />

besides lo, such as eth0:<br />

Example 3.1. ifconfig for a working network configuration<br />

# ifconfig<br />

(...)<br />

eth0 Link encap:Ethernet HWaddr 00:50:BA:8F:61:7A<br />

inet addr:192.168.0.2 Bcast:192.168.0.255 Mask:255.255.255.0<br />

inet6 addr: fe80::50:ba8f:617a/10 Scope:Link<br />

UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1<br />

RX packets:1498792 errors:0 dropped:0 overruns:0 frame:0<br />

TX packets:1284980 errors:0 dropped:0 overruns:0 carrier:0<br />

collisions:1984 txqueuelen:100<br />

RX bytes:485691215 (463.1 Mb) TX bytes:123951388 (118.2 Mb)<br />

Interrupt:11 Base address:0xe800<br />

Optional: Configure any Proxies<br />

If you access the Internet through a proxy, you might need to set up proxy information during the<br />

installation. It is very easy to define a proxy: you just need to define a variable which contains the<br />

proxy server information.<br />

In most cases, you can just define the variables using the server hostname. As an example, we assume<br />

the proxy is called proxy.gentoo.org and the port is 8080.<br />

Example 3.2. Defining proxy servers<br />

(If the proxy filters HTTP traffic)<br />

# export http_proxy="http://proxy.gentoo.org:8080"<br />

(If the proxy filters FTP traffic)<br />

# export ftp_proxy="ftp://proxy.gentoo.org:8080"<br />

(If the proxy filters RSYNC traffic)<br />

# export RSYNC_PROXY="proxy.gentoo.org:8080"<br />

If your proxy requires a username and password, you should use the following syntax for the variable:<br />

Example 3.3. Adding username/password to the proxy variable<br />

http://username:password@proxy.gentoo.org:8080<br />

14

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!