[root@localhost ~]# /sbin/ifup ppp0
[root@localhost ~]# ipconfig
bash: ipconfig: command not found
[root@localhost ~]# ifconfig
eth0 Link encap:Ethernet HWaddr 00:05:5D:6B:63:5F
inet6 addr: fe80::205:5dff:fe6b:635f/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:472 errors:0 dropped:0 overruns:0 frame:0
TX packets:491 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:175562 (171.4 KiB) TX bytes:68286 (66.6 KiB)
Interrupt:17 Base address:0xec00
eth1 Link encap:Ethernet HWaddr 00:40:05:46:44:7A
inet addr:192.168.1.1 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::240:5ff:fe46:447a/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:246 errors:0 dropped:0 overruns:0 frame:0
TX packets:84 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:19888 (19.4 KiB) TX bytes:7487 (7.3 KiB)
Interrupt:18 Base address:0x800
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:4596 errors:0 dropped:0 overruns:0 frame:0
TX packets:4596 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:5654491 (5.3 MiB) TX bytes:5654491 (5.3 MiB)
ppp0 Link encap

oint-to-Point Protocol
inet addr:222.130.27.223 P-t-P:222.130.0.1 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1492 Metric:1
RX packets:70 errors:0 dropped:0 overruns:0 frame:0
TX packets:77 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:20543 (20.0 KiB) TX bytes:9139 (8.9 KiB)
[root@localhost ~]# echo "1" >/proc/sys/net/ipv4/ip_forward
[root@localhost ~]# iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE
[root@localhost ~]# ping 192.168.1.2
PING 192.168.1.2 (192.168.1.2) 56(84) bytes of data.
64 bytes from 192.168.1.2: icmp_seq=26 ttl=128 time=0.201 ms
64 bytes from 192.168.1.2: icmp_seq=27 ttl=128 time=0.165 ms
64 bytes from 192.168.1.2: icmp_seq=28 ttl=128 time=0.176 ms
64 bytes from 192.168.1.2: icmp_seq=29 ttl=128 time=0.191 ms
64 bytes from 192.168.1.2: icmp_seq=30 ttl=128 time=0.197 ms
64 bytes from 192.168.1.2: icmp_seq=31 ttl=128 time=0.170 ms
64 bytes from 192.168.1.2: icmp_seq=32 ttl=128 time=0.204 ms
64 bytes from 192.168.1.2: icmp_seq=33 ttl=128 time=0.197 ms
64 bytes from 192.168.1.2: icmp_seq=34 ttl=128 time=0.173 ms
64 bytes from 192.168.1.2: icmp_seq=35 ttl=128 time=0.186 ms
64 bytes from 192.168.1.2: icmp_seq=36 ttl=128 time=0.191 ms
--- 192.168.1.2 ping statistics ---
36 packets transmitted, 11 received, 69% packet loss, time 35002ms
rtt min/avg/max/mdev = 0.165/0.186/0.204/0.018 ms
[root@localhost ~]#
主机能上网。
192.168.1..2不能上网。
哪里设置错了?
我是新新手//。。。。