Re[2]: [Comm] ðÒÏÂÌÅÍÁ ÓÅÔÉ (eth0 & eth1)
Ivanov Maxim
=?iso-8859-1?q?ivanov_=CE=C1_amos=2Eru?=
ðÔ íÁÊ 20 11:42:42 MSD 2005
úÄÒÁ×ÓÔ×ÕÊÔÅ, Andriy.
÷Ù ÐÉÓÁÌÉ 19 ÍÁÑ 2005 Ç., 14:19:16:
> |
> | ôÁËÁÑ ÏÞÅÎØ ÓÔÒÁÎÎÁÑ ÐÒÏÂÌÅÍÁ. íÁÓÔÅÒ 2.4, Ä×Á ÓÅÔÅ×ÙÈ ÉÎÔÅÒÆÅÊÓÁ.
> | eth0 172.19.X.X/24
> | eth1 192.168.0.0/24
> | default GW 172.19.X.X
> |
> | route
> | 172.19.X.X 255.255.255.0 eth0
> | 192.168.0.0 255.255.255.0 eth1
> | 127.0.0.0 255.0.0.0 lo
> | default 172.19.X.X eth0
> |
> | /etc/sysconfig/network
> | NETWOKING=yes
> | FORWARD_IPV4=yes
> | HOSTNAME=server
> | DOMAINNAME=firma.ru
> | GATEWAY=172.19.X.X
> | GATEWAYDEV=eth0
> |
> | ÷ /etc/sysctrl.conf
> |
> | ðÁÒÁÍÅÔÒ net.ipv4.ip_forward = 1
> |
> | ó ÓÁÍÏÊ ÍÁÛÉÎÙ ÉÎÅÔ ÐÉÎÇÕÅÔÓÑ, bind ÒÁÂÏÔÁÅÔ (ÁÄÒÅÓÁ ÒÅÚÏÌ×ÑÔÓÑ), ×ÓÅ
> | ÓÌÁ×ÎÏ. ÷ÎÕÔÒÅÎÎÑÑ ÓÅÔØ ÎÅ ×ÉÄÎÁ ÷ïïâýå. ô.Å. ÎÅ ÐÉÎÇÕÅÔÓÑ ÎÉÞÅÇÏ
> | ËÒÏÍÅ ÓÁÍÏÇÏ ÉÎÔÅÒÆÅÊÓÁ eth1.
> | ó ËÁËÏÇÏ-ÔÏ ÐÅÒÅÐÕÇÁ × ÆÁÊÌÅ /etc/sysconfig/network ÐÏÍÅÎÑÌ eth0 ÎÁ
> | eth1. ÷ÎÕÔÒÅÎÎÑÑ ÓÅÔØ ÚÁÒÁÂÏÔÁÌÁ, ÉÎÔÅÒÎÅÔ - ÔÏÖÅ ÐÒÏÄÏÌÖÉÌ ÒÁÂÏÔÕ.
> | ïÄÎÁËÏ ÉÚ ×ÎÕÔÒÅÎÎÅÊ ÓÅÔÉ ÄÏÓÔÕÐÁ ÎÁÒÕÖÕ ÎÅÔ, ÏÎÏ É ÐÏÎÑÔÎÏ - ÛÌÀÚ ÎÅ
> | ÎÁ ÔÏÍ ÉÎÔÅÒÆÅÊÓÅ. ó ÓÁÍÏÇÏ ÓÅÒ×ÅÒÁ ÚÁÐÕÓËÁÀ links - ÄÏÓÔÕÐÁ ÐÏ http
> | ÎÅÔ. ó ËÌÉÅÎÔÓËÉÈ ÍÁÛÉÎ - ÄÏÓÔÕÐÁ ÞÅÒÅÚ squid - ÎÅÔ.
> |
> | ÷ ÌÏÇÁÈ - ÐÕÓÔÏ.
> |
> | ÷ÏÐÒÏÓ ÔÁËÏÊ: ÐÏÞÅÍÕ ×ÓÅ ÔÁË ÐÏÌÕÞÁÅÔÓÑ É ÞÔÏ ÓÄÅÌÁÔØ, ÞÔÏÂÙ ×ÓÅ ÂÙÌÏ
> | ËÁË ÎÁÄÏ?
> | îÅÍÎÏÇÏ ÓÕÍÂÕÒÎÏ ÐÏÌÕÞÉÌÏÓØ, ÎÏ Ñ ÞÔÏ-ÔÏ ×ÁÖÎÏÅ ÕÐÕÓËÁÀ...
> ÷ ËÁËÉÈ ÌÏÇÁÈ? ÷Ù ÎÅ ÐÏËÁÚÁÌÉ ×Ù×ÏÄ
> ip l l
1: lo: <LOOPBACK,UP> mtu 16436 qdisc noqueue
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
4: eth0: <BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast qlen 1000
link/ether 4c:00:10:54:f9:4e brd ff:ff:ff:ff:ff:ff
5: eth1: <BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast qlen 1000
link/ether 4c:00:10:54:d6:b9 brd ff:ff:ff:ff:ff:ff
> ip a l
1: lo: <LOOPBACK,UP> mtu 16436 qdisc noqueue
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 brd 127.255.255.255 scope host lo
4: eth0: <BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast qlen 1000
link/ether 4c:00:10:54:f9:4e brd ff:ff:ff:ff:ff:ff
inet 172.19.118.100/24 brd 172.19.118.255 scope global eth0
5: eth1: <BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast qlen 1000
link/ether 4c:00:10:54:d6:b9 brd ff:ff:ff:ff:ff:ff
inet 192.168.0.56/24 brd 192.168.0.255 scope global eth1
> ip r l
192.168.0.0/24 dev eth1 proto kernel scope link src 192.168.0.56
172.19.118.0/24 dev eth0 proto kernel scope link src 172.19.118.100
127.0.0.0/8 dev lo scope link
default via 172.19.118.1 dev eth0
> × ÏÂÏÉÈ ÓÉÔÕÁÃÉÑÈ. é ÎÉ ÓÌÏ×Á ÎÅ ÓËÁÚÁÌÉ ÐÒÏ ÓÏÓÔÏÑÎÉÅ ÓÅÔÅ×ÏÇÏ ÜËÒÁÎÁ.
üÔÏ ÄÌÑ ÓÉÔÕÁÃÉÉ Ó Ó ÎÅÐÒÁ×ÉÌØÎÙÍ ÛÌÀÚÏÍ. óÅÔÅ×ÏÊ ÜËÒÁÎ - ×ÓÅ
ÒÁÚÒÅÛÅÎÏ.
äÌÑ ÓÉÔÕÁÃÉÉ Ó ÐÒÁ×ÉÌØÎÙÍ ÛÌÀÚÏÍ:
ip l l
1: lo: <LOOPBACK,UP> mtu 16436 qdisc noqueue
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
4: eth0: <BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast qlen 1000
link/ether 4c:00:10:54:f9:4e brd ff:ff:ff:ff:ff:ff
5: eth1: <BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast qlen 1000
link/ether 4c:00:10:54:d6:b9 brd ff:ff:ff:ff:ff:ff
ip a l
1: lo: <LOOPBACK,UP> mtu 16436 qdisc noqueue
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 brd 127.255.255.255 scope host lo
4: eth0: <BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast qlen 1000
link/ether 4c:00:10:54:f9:4e brd ff:ff:ff:ff:ff:ff
inet 172.19.118.100/24 brd 172.19.118.255 scope global eth0
5: eth1: <BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast qlen 1000
link/ether 4c:00:10:54:d6:b9 brd ff:ff:ff:ff:ff:ff
inet 192.168.0.56/24 brd 192.168.0.255 scope global eth1
ip r l
192.168.0.0/24 dev eth1 proto kernel scope link src 192.168.0.56
172.19.118.0/24 dev eth0 proto kernel scope link src 172.19.118.100
127.0.0.0/8 dev lo scope link
default via 172.19.118.1 dev eth0
route
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.0.0 * 255.255.255.0 U 0 0 0 eth1
172.19.118.0 * 255.255.255.0 U 0 0 0 eth0
127.0.0.0 * 255.0.0.0 U 0 0 0 lo
default 172.19.118.1 0.0.0.0 UG 0 0 0 eth0
þÔÏ-ÔÏ Ñ ÔÁË Ó ÈÏÄÕ ÎÅ ÍÏÇÕ ÎÁÊÔÉ ÏÔÌÉÞÉÊ. ðÏÌÕÞÁÅÔÓÑ, ÍÅÎÑÀ ÛÌÀÚÏ×ÏÊ
ÄÉ×ÁÊÓ ÉÌÉ ÎÅÔ - ÎÉËÁËÏÊ ÒÁÚÎÉÃÙ?
_______________
ó Õ×ÁÖÅÎÉÅÍ,
íÁËÓÉÍ é×ÁÎÏ×
ðÏÄÒÏÂÎÁÑ ÉÎÆÏÒÍÁÃÉÑ Ï ÓÐÉÓËÅ ÒÁÓÓÙÌËÉ community