當前位置:湖南陽光電子技術學校文章資訊電腦維修技術

湖南陽光電子技術學校 簡介

學校地址:湖南省 長沙市 雨花區 車站南路紅花坡路口
來校路線:長沙火車站售票廳后坪,乘135路公交車到“紅花坡站”,即到.
學校電話:13807313137,13308461099
免費電話:13807313137
值班手機:(0)13807313137 楊老師
開課時間:我校常年面向全國招生,月月開班。每月1號,16號開學。
招生范圍:凡年滿15歲的公民,不限年齡,性別,地區。都歡迎來我校學習。
食宿問題:學校免費住宿,免費提供床上用品。食堂就餐,費用自理,約12元/天。
學校官網:www.hnygpx.net www.410014.com
專業介紹:歡迎查看我校專業課程!
收費標準:歡迎查看我校收費標準!
在線 Q Q:您想咨詢招生情況,請聯系我啊·您想咨詢招生情況,請聯系我啊
網上報名:歡迎您報讀湖南陽光電子學校!


Linux多網卡同IP段解決

減小字體 增大字體 作者:佚名  來源:本站整理  發布時間:2011-06-02 20:35:40

  linux/Documentation/networking/ip-sysctl.txt :

  arp_filter - BOOLEAN

  1 - Allows you to have multiple network interfaces on the same

  subnet, and have the ARPs for each interface be answered

  based on whether or not the kernel would route a packet from

  the ARP'd IP out that interface (therefore you must use source

  based routing for this to work). In other words it allows control

  of which cards (usually 1) will respond to an arp request.

  0 - (default) The kernel can respond to arp requests with addresses

  from other interfaces. This may seem wrong but it usually makes

  sense, because it increases the chance of successful communication.

  IP addresses are owned by the complete host on Linux, not by

  particular interfaces. Only for more complex setups like load-

  balancing, does this behaviour cause problems.

  arp_filter for the interface will be enabled if at least one of

  conf/{all,interface}/arp_filter is set to TRUE,

  it will be disabled otherwise

  arp_announce - INTEGER

  Define different restriction levels for announcing the local

  source IP address from IP packets in ARP requests sent on

  interface:

  0 - (default) Use any local address, configured on any interface

  1 - Try to avoid local addresses that are not in the target's

  subnet for this interface. This mode is useful when target

  hosts reachable via this interface require the source IP

  address in ARP requests to be part of their logical network

  configured on the receiving interface. When we generate the

  request we will check all our subnets that include the

  target IP and will preserve the source address if it is from

  such subnet. If there is no such subnet we select source

  address according to the rules for level 2.

  2 - Always use the best local address for this target.

  In this mode we ignore the source address in the IP packet

  and try to select local address that we prefer for talks with

  the target host. Such local address is selected by looking

  for primary IP addresses on all our subnets on the outgoing

  interface that include the target IP address. If no suitable

  local address is found we select the first local address

  we have on the outgoing interface or on all other interfaces,

  with the hope we will receive reply for our request and

  even sometimes no matter the source IP address we announce.

  The max value from conf/{all,interface}/arp_announce is used.

  Increasing the restriction level gives more chance for

  receiving answer from the resolved target while decreasing

  the level announces more valid sender's information.

  arp_ignore - INTEGER

  Define different modes for sending replies in response to

  received ARP requests that resolve local target IP addresses:

  0 - (default): reply for any local target IP address, configured

  on any interface

  1 - reply only if the target IP address is local address

  configured on the incoming interface

  2 - reply only if the target IP address is local address

  configured on the incoming interface and both with the

  sender's IP address are part from same subnet on this interface

  3 - do not reply for local addresses configured with scope host,

  only resolutions for global and link addresses are replied

  4-7 - reserved

  8 - do not reply for all local addresses

  The max value from conf/{all,interface}/arp_ignore is used

  when ARP request is received on the {interface}

  解決

  echo 2 > /proc/sys/net/ipv4/conf/all/arp_announce

  echo 1 > /proc/sys/net/ipv4/conf/all/arp_ignore

  or

  echo 1 > /proc/sys/net/ipv4/conf/all/arp_filter

Tags:Linux 多網卡同 IP 段解決

作者:佚名

網頁說明

    Linux多網卡同IP段解決這條信息,為您提供了中國 新 全的Linux多網卡同IP段解決信息,歡迎您免費查看Linux多網卡同IP段解決信息。如果您對Linux多網卡同IP段解決這條消息有好的意見建議請聯系我們,讓我們一起進步!
  • 熱門關鍵詞:CPU(355)  維修(198)  彩電(172)  故障(143)  招生(110)  職業中專(105)  技工學校(104)  電腦(98)  機芯(93)  開縣(91)  學校(88)  手機(87)  BIOS(68)  首選(65)  培訓(65)  筆記本(60)  云陽(58)  學主板維修哪里 好(50)  學電腦硬件哪里 好(50)  檢修(50)  Windows(46)  MTK(43)  Vista(42)  海爾(42)  東芝(40)  主板(39)  win7(38)  三極管(38)  TCL(37)  模式(37)  硬盤(36)  三星(35)  液晶電視(35)  工廠(33)  Linux(32)  技術(32)  XP(30)  北京(30)  電子元件(30)  彩色(29)