' B/ D( |* t, E3 m+ B/ W1 C& T4 T二、网卡设置如下:& S4 g4 _2 ^" O' ~4 L" G9 W' g) E
在第一台机器的双网卡的接法:把ADSL接在eth0上,把eth1接在HUB上。% _0 p& n" }4 a" [- j7 Q
第一块网卡的ip设置: - s/ G' @% h$ I' o$ d: l' Rip地址:192.168.0.1/ [: `, M$ ^4 ]! z7 u$ C3 V. w
掩码:255.255.255.0, m& l- P; a6 ` E% p& o2 F4 U' a
第二块网卡的设置 9 Z7 Z, G; D1 x$ ?# ?/ |# R. ~ip地址:192.168.0.29 I4 \2 F" l" e( P
掩码:255.255.255.01 d& L7 F: f6 k$ l5 R" i
在这两块网卡中,不要设置网关。) {- j) Q* ~6 D9 ~
++++++++++++++++++++++++++++++++++++++++ ! i/ w# ?) |( a, ~4 T% Z& b第二台:Toshiba notebook的网卡设置 - x9 b: J6 u' m0 g& T$ n" lIP:192.168.0.6) E- X4 y& i8 S4 p
掩码:255.255.255.09 C4 @' \. W, \ ^
网关:192.168.0.1# J+ c# C' I3 N! A, e) P# [$ v
DNS:设置电信给的,或者下面的也行5 \8 x$ U% k7 z: z
202.96.134.133 + E8 F7 I8 |' o+ @1 n202.96.168.68 3 |/ \' p, P) [++++++++++++++++++++++++++++++++++++++++ % [) N6 F. p, _第三台机器的网卡设置 9 \1 d2 i9 c8 [P:192.168.0.8# |' N2 f% Y3 E7 @* h/ V
掩码:255.255.255.0 E1 o; w0 c: X4 p. j4 g) G" m
网关:192.168.0.1& I% H7 i9 F, r0 {+ F5 d+ a
DNS:设置电信给的,或者下面的也行! K+ u P5 g& J
202.96.134.133# y, Q* H$ w' ?! y7 L
202.96.168.68 0 m. {2 ]' s8 w% W& O) W( t2 R+ g三、设置ppp拔号,0 q/ A2 {0 U0 l* R
1]删除原来的ppp的ADSL链接。 0 ~3 D% [0 Z$ m5 L/ N# ?8 S如果redhat-config-network原来已经用 redhat-config-network设置的ppp的ADSL连接拔号,用下面的命令调用删除。; q* Z5 x( t3 B( D( b$ e; Y1 h2 a
#redhat-config-network% N2 s' m% j4 W+ E1 X! \) C
% Z! g: A) N+ n/ d0 T/ o2]在终端上以root权限运行/ S: p% R, Z: C6 H/ p
#adsl-setup 1 P0 D% R. v ~" A * Z: w2 R- v; v' \; R. k0 } ; T8 N# f! }8 J c/ z[root@LinuxSir02 root]# adsl-setup / Q% [ ?6 I8 O3 O8 i0 x/ t/ u) J5 m8 Y+ N5 w
Welcome to the ADSL client setup. First, I will run some checks on 0 h5 a" v- ?: P# s! [; t9 @ q; Hyour system to make sure the PPPoE client is installed properly.... w( ^& A$ ~' M D1 B
* G$ d$ \) v m* L- p
0 P/ [) x( f4 F) @$ R5 lEnter your Login Name (default root): ADSL提供商给的用户名,写在这里 4 i; P Q( \5 f2 |' h. ? $ [/ l1 o. i: U0 B8 dINTERFACE / h; A; j( V [9 f& } 7 E0 i1 R' I/ e9 r2 _8 P) hEnter the Ethernet interface connected to the ADSL modem 5 Z2 A _6 l) x0 aFor Solaris, this is likely to be something like /dev/hme0. 7 N0 F( E9 {7 K/ C. k' g3 \For Linux, it will be ethX, where 'X' is a number. 8 q# C$ h3 ?8 k9 z- C(default eth0): eth0这是ADSL通过第一台机器的第一张网卡eth0提供上网 / R! d& \. c" I2 @- W 9 j0 z2 k0 `; j7 p) j3 b6 D# p$ Y& R1 V/ q2 f: ?
Do you want the link to come up on demand, or stay up continuously?1 r/ L K4 C& o3 f# N
If you want it to come up on demand, enter the idle time in seconds 5 O1 R! f# Q7 ^4 m4 O1 y$ @after which the link should be dropped. If you want the link to s2 V& a' d' t% T# i1 R
stay up permanently, enter 'no' (two letters, lower-case.)* W$ q; P0 l% e7 ?3 ]. D
NOTE: Demand-activated links do not interact well with dynamic IP* i* m( d0 Q# ^) A9 R6 X7 T
addresses. You may have some problems with demand-activated links.5 [. F- x6 l+ Y2 O, v6 Y
Enter the demand value (default no):在这里按一下回车就行了。 9 R$ o+ G# m* |, R' S. B+ Z: l5 _# ^
DNS+ }9 r) w' Z+ u# v, U
- o, c, l* x; q
Please enter the IP address of your ISP's primary DNS server. & ]9 V9 O7 r) C6 z+ iIf your ISP claims that 'the server will provide dynamic DNS addresses', 6 C+ S2 `; C5 a1 |! \* f: q& Nenter 'server' (all lower-case) here.& G# x. S- s# W' k
If you just press enter, I will assume you know what you are 4 N8 c2 F! v, Adoing and not modify your DNS setup.( [) A( x. e$ U; s( [0 [9 U
Enter the DNS information here: 202.96.134.133这是DSN,最好用你本地电信给的 5 a7 m: V6 y9 t$ |: {9 KPlease enter the IP address of your ISP's secondary DNS server. 1 x. P# ^% O7 OIf you just press enter, I will assume there is only one DNS server. / L& J7 o' [. `9 |. Y6 eEnter the secondary DNS server address here: 202.96.168.68这是第二个DNS,也是电信给的。, L* f0 B. Z& G* g
% Y7 V/ F- z( I. `- u% u ~7 g k& gPASSWORD% f8 F: O5 ^* }( z
9 k% c' h# M Y! [3 FPlease enter your Password:在这里把ADSL提供商给的密码写上8 c, U, n1 k2 \3 ?# s
Please re-enter your Password:3 i0 U; O1 j" y }3 Z' W4 Z
9 ^ D1 B; Q/ f0 ]( Y) [* jPlease enter 'yes' (two letters, lower-case.) if you want to allow % F& y; H8 M- k- S7 i0 mnormal user to start or stop DSL connection (default yes): yes % R% D1 r& {, H" g+ b0 D9 S1 n& r$ I, s1 t5 w$ e
FIREWALLING ' D/ G! }0 \# v6 a+ K# U% s% O& ` ( q) i8 R0 o5 U! z" Y* jPlease choose the firewall rules to use. Note that these rules are ) j: ^. _0 x5 p8 v4 |/ [very basic. You are strongly encouraged to use a more sophisticated . h6 C# d0 |- `5 O% k% M. R* ofirewall setup; however, these will provide basic security. If you $ R$ F7 Q7 E. |) ^' k# lare running any servers on your machine, you must choose 'NONE' and4 w4 B( J) ~. l+ ~6 O
set up firewalling yourself. Otherwise, the firewall rules will deny9 U4 H) t" p" ]: x
access to all standard servers like Web, e-mail, ftp, etc. If you ) C& v2 \! T5 Y9 W# aare using SSH, the rules will block outgoing SSH connections which" P' T8 a) \ ^/ z( C: p
allocate a privileged source port., o- W+ M/ w7 J( [/ v! Z. l) G3 r# j; z
; b \( L# R4 |- h. U0 @
The firewall choices are:$ s# J/ V- B8 t( X" q* a
0 - NONE: This script will not set any firewall rules. You are responsible: D, t% e* {2 V( S8 f6 P, e( |
for ensuring the security of your machine. You are STRONGLY" @/ s% j# a9 T
recommended to use some kind of firewall rules. ' D6 O V+ p8 ~8 ]/ x. b1 - STANDALONE: Appropriate for a basic stand-alone web-surfing workstation 6 {: ]! Z) |5 H4 |2 - MASQUERADE: Appropriate for a machine acting as an Internet gateway $ |" a; s$ F S1 W5 @4 L0 R% Cfor a LAN 3 q: U/ Q2 c; l" NChoose a type of firewall (0-2): 2 2 E3 |6 c) P) p$ g4 \8 | ' U& t6 [( ]% q% AStart this connection at boot time ) N/ R' ~* b7 i- Y5 ~ $ ~5 [7 f l) Y+ @Do you want to start this connection at boot time? 9 N; w( ^% v* K% Y. A7 nPlease enter no or yes (default no):yes 5 C: O! ]! A/ u; l 5 w( W, F* U2 @5 ]5 c3 |7 W** Summary of what you entered **- g0 l/ @( k7 ~% p
3 f" \; b7 F* y( {, o* B MEthernet Interface: eth0 2 K4 p4 Q' l! p7 x. eUser name: ADSL用户名 " v' y6 ^& v% r1 O. rActivate-on-demand: No d% ]& s6 r5 A4 C8 \Primary DNS: 202.96.134.1338 i2 p g1 q, o% k9 Z8 m. @
Secondary DNS: 202.96.168.68) ^. _. a' {3 k3 |) F
Firewalling: MASQUERADE ! Q F) v% { \0 S' O7 b9 iUser Control: yes 1 T, H P% |3 Y- yAccept these settings and adjust configuration files (y/n)?y 2 j+ i3 D% \1 H$ Y2 l9 O$ `2 p% N: J# v+ T7 _! O) r