) Q/ n' n" Y# S* f( H5 A' G# P! |3 H二、网卡设置如下:8 ^- j1 i& k+ S, h' X( O
在第一台机器的双网卡的接法:把ADSL接在eth0上,把eth1接在HUB上。6 t9 B6 v: ^& C* e
第一块网卡的ip设置:0 e4 h& I/ x3 s' E8 D% ?
ip地址:192.168.0.1- k) X3 Q/ U# X# _
掩码:255.255.255.0 ( ?) T) z( J: ~' u* \& ]第二块网卡的设置 2 E; V) U3 t% D# e: u' A: i, Rip地址:192.168.0.2! m1 `, O4 M! J r/ {* E
掩码:255.255.255.0% c% e8 L9 d2 e q" v+ R u
在这两块网卡中,不要设置网关。0 o* _% Q3 k) w( w) D
++++++++++++++++++++++++++++++++++++++++0 M) J- C' m- i) ]. O) n
第二台:Toshiba notebook的网卡设置 + S7 b" F; Z# X! g( Z9 TIP:192.168.0.6+ f* W- H/ E- W
掩码:255.255.255.0 4 @6 b/ ?/ j1 f/ v: s/ l( S网关:192.168.0.18 F. C; O3 ~+ @, Z# R# f
DNS:设置电信给的,或者下面的也行 ; H2 T7 ^7 ^5 t- B3 P, [202.96.134.133( O; W$ H( R# L, q( b4 `- N1 E
202.96.168.68: g7 u6 J; Z, {% f) w$ i7 l
++++++++++++++++++++++++++++++++++++++++9 o' v3 k. W( {; z6 l% Z a% J
第三台机器的网卡设置 - p2 v2 a& \0 t, f$ t0 Y: PP:192.168.0.83 v" U! I4 R6 P' o% Q" k, N0 ^0 M
掩码:255.255.255.0& a& [+ p1 }1 X! ]
网关:192.168.0.1/ i$ r/ z3 \9 Q b4 R3 `& ?: I
DNS:设置电信给的,或者下面的也行 / }0 I, L7 O7 Y8 L+ ]0 i) {202.96.134.133 1 G9 ~+ E9 V) y0 V1 H# x0 K202.96.168.68 ) }5 M: N3 q6 z7 Y6 u7 K6 o三、设置ppp拔号,2 \6 s; x2 A s/ H) Z
1]删除原来的ppp的ADSL链接。/ |2 }& T: j/ v- R$ ^
如果redhat-config-network原来已经用 redhat-config-network设置的ppp的ADSL连接拔号,用下面的命令调用删除。 & n, o9 |# k& r0 j+ c#redhat-config-network, ~# J' X6 [+ ^$ B- x! b% L
" ?' h t/ ?* C. d
2]在终端上以root权限运行 + I6 }1 X: @7 b. G) p#adsl-setup3 ^5 r' w( k4 `2 v6 |; J
8 g+ q& W x4 G3 b/ W4 D5 V1 I3 y/ [: u8 u
[root@LinuxSir02 root]# adsl-setup2 m' y2 B( R& P
6 H; u. Q# e1 O" I& T! DWelcome to the ADSL client setup. First, I will run some checks on& F4 ~! [8 d1 v+ ]
your system to make sure the PPPoE client is installed properly... s' ^0 g5 S+ Z2 C
' |' U( E$ o3 J, q5 `0 v
- R5 n+ P. ~# o8 {
LOGIN NAME 6 d0 r+ I# s3 N& j' I" @: M4 {1 e% P1 q0 M# t, Y) X
Enter your Login Name (default root): ADSL提供商给的用户名,写在这里: k- F( k6 G4 U
+ c0 I0 h' H x7 x- |4 q
INTERFACE9 J2 w: a' w0 q% L1 O7 [! z
! k4 t5 h7 H% C( o% eEnter the Ethernet interface connected to the ADSL modem( E. m/ i+ L# {: W- g
For Solaris, this is likely to be something like /dev/hme0. / \, I" U9 j- {# OFor Linux, it will be ethX, where 'X' is a number." _' g, r2 {/ H' W* i5 g j
(default eth0): eth0这是ADSL通过第一台机器的第一张网卡eth0提供上网2 x8 _4 O9 y8 A! d R
" b; p& j; Y+ C! _2 i% I + w. J/ B5 N( J7 x) x, S, vDo you want the link to come up on demand, or stay up continuously?4 m4 T! N# K' R) V5 z
If you want it to come up on demand, enter the idle time in seconds : x9 V; G+ L4 z8 Hafter which the link should be dropped. If you want the link to . p8 P- ?" B ^( ~stay up permanently, enter 'no' (two letters, lower-case.) % A: x, G1 z- i9 VNOTE: Demand-activated links do not interact well with dynamic IP ' _* d7 r# Y* F- n5 Gaddresses. You may have some problems with demand-activated links. ; N+ Q0 E0 l" C; u* H+ W- |Enter the demand value (default no):在这里按一下回车就行了。" h4 c8 k b: G# c6 {7 \6 D6 c+ {( {
) }- ~) V; Z+ r( o) o5 C% b0 j6 ~DNS ' Q6 Y8 X5 v. q4 L# N% o6 U3 g ^0 C: u! A$ }: pPlease enter the IP address of your ISP's primary DNS server.; B1 Z! f" \+ p6 G' @. c$ V6 T
If your ISP claims that 'the server will provide dynamic DNS addresses', $ O7 L4 B6 u1 y2 F. o1 ienter 'server' (all lower-case) here.$ O# A W- y" a! J$ q: O3 L/ I
If you just press enter, I will assume you know what you are . _8 k) {/ _1 W/ }7 ddoing and not modify your DNS setup." J/ e3 M3 _3 A7 O u% \$ [& n0 d3 k
Enter the DNS information here: 202.96.134.133这是DSN,最好用你本地电信给的 ! N9 y" p! `+ u' Y6 S! ^! oPlease enter the IP address of your ISP's secondary DNS server.! [3 E' N2 O3 L+ U
If you just press enter, I will assume there is only one DNS server.; Y, X. y9 j! q+ @% t9 T
Enter the secondary DNS server address here: 202.96.168.68这是第二个DNS,也是电信给的。 / U7 @0 w$ x5 h9 l* F& Y 0 @. X: K- i6 F7 O8 C8 a# x! @PASSWORD 6 [2 M& k# N* w5 y7 q. ^6 W : g, P* P* b0 O- r* YPlease enter your Password:在这里把ADSL提供商给的密码写上# `+ V; @ O# D' L! h H
Please re-enter your Password: , d; ]( |, d% ?; @ $ B. N7 S8 T2 x5 R0 {4 U6 kUSERCTRL/ `: n2 f3 L! f, c
9 R' i( ]( X, U4 U$ Q1 O ?" f, K
Please enter 'yes' (two letters, lower-case.) if you want to allow ) y Z+ Q$ I" I& y" T4 f( c7 Enormal user to start or stop DSL connection (default yes): yes : G8 F/ M9 T/ i) M/ z) F# \' T F 2 `* O& s3 u% ` \7 i9 lFIREWALLING & _) F+ l7 K& ?3 \" A . Z' j! j! ]) hPlease choose the firewall rules to use. Note that these rules are; g- V3 z7 w$ k" G
very basic. You are strongly encouraged to use a more sophisticated# N, x: [+ k/ S, M, B* e0 \
firewall setup; however, these will provide basic security. If you) w0 u5 q% R$ h! v
are running any servers on your machine, you must choose 'NONE' and 4 V/ E6 N; H9 Cset up firewalling yourself. Otherwise, the firewall rules will deny. ~/ ~$ Z: n, \' @# R2 Y
access to all standard servers like Web, e-mail, ftp, etc. If you0 O& Y# N+ {& X+ e' m7 I% H# d
are using SSH, the rules will block outgoing SSH connections which A" q @$ z8 B; w2 x* H3 \
allocate a privileged source port. 0 r4 t* N; p% e2 p+ i 1 l8 ]: y; I8 E! QThe firewall choices are: , [ u9 E; X% a2 T0 - NONE: This script will not set any firewall rules. You are responsible ; N9 P+ p: L, R, q7 U+ nfor ensuring the security of your machine. You are STRONGLY 7 s& S0 x3 s# j: q1 lrecommended to use some kind of firewall rules. % T# _$ ?- d2 c' k4 G1 I1 - STANDALONE: Appropriate for a basic stand-alone web-surfing workstation ; C) w m6 J3 z- D. u& u0 o& W7 t4 ~2 - MASQUERADE: Appropriate for a machine acting as an Internet gateway) a" L. I# O# J$ F3 N! H
for a LAN' Q: A. l, Z1 j2 Y2 d( O' @
Choose a type of firewall (0-2): 2/ P5 `. U! x3 C
* F( p) T; c- ~! O# `Start this connection at boot time 7 e* y5 e2 d8 B$ p* S2 K9 H @5 z( {4 r1 o4 nDo you want to start this connection at boot time?1 z# [: R A9 `( y. |9 m [
Please enter no or yes (default no):yes+ C' \" b# t3 y9 L% R' D% D
# v, B9 w! e% l0 B** Summary of what you entered ** 8 ?2 r$ ?1 d8 L7 i, N* G X. H w
Ethernet Interface: eth0 7 P: z L0 s3 V7 [& t sUser name: ADSL用户名6 m* Y6 O" Y% h4 x: k; \) |
Activate-on-demand: No) u% g8 ^' G# }2 M7 P% f6 ]
Primary DNS: 202.96.134.133* s" a9 R8 ~: | ~' y
Secondary DNS: 202.96.168.68/ b1 i0 \. W8 Y$ ]' o. s6 H
Firewalling: MASQUERADE ) U- I9 D/ k6 m& MUser Control: yes 9 x! M0 g8 D: Y U8 A" YAccept these settings and adjust configuration files (y/n)?y / T/ u+ L5 }- J4 L3 U! Y) E- y) F5 P( T+ g" X3 X