artes |
|
Темы:
3
Сообщения:
36
Участник с: 12 июня 2009
|
Зачем? Проверить маршрутизатор? Он рабочий. Именно управляемым коммутатором его работоспособность и проверялась. Задача не уйти от vlan'ов в linux, а добиться их полной и безоговорочной работоспособности. Причем необходимо обрабатывать как минимум 3 vlan'а. |
chawoosh |
|
Темы:
4
Сообщения:
107
Участник с: 07 декабря 2011
|
По поводу проверки - у меня на каждом из двух интерфейсов поднято по четыре vlan, всё работает. Да, ещё вопрос появился - а на рутере случайно нет правил принудительной маршрутизации? Пакет снабжается тэгом на выходном интерфейсе, если рутеру сказано всё валить в нормальный, они и будут не тэгированными. |
artes |
|
Темы:
3
Сообщения:
36
Участник с: 12 июня 2009
|
Нет, на маршрутизаторе нет никакой принудительной маршрутизации. Весь конфиг маршрутизатора я привел в первом сообщении. Никакой там маршрутизации и не нужно, всё сети считаются “directly connected”, соответственно ничего сверхъестественного он выдумывать не должен. Будет интересно посмотреть на вывод Вашего sysctl. В качестве сравнения привожу свой: Linux# sysctl -a | grep net.ipv4 error: permission denied on key 'vm.compact_memory' net.ipv4.route.gc_thresh = 65536 net.ipv4.route.max_size = 1048576 net.ipv4.route.gc_min_interval = 0 net.ipv4.route.gc_min_interval_ms = 500 net.ipv4.route.gc_timeout = 300 error: permission denied on key 'net.ipv4.route.flush' net.ipv4.route.gc_interval = 60 net.ipv4.route.redirect_load = 6 net.ipv4.route.redirect_number = 9 net.ipv4.route.redirect_silence = 6144 net.ipv4.route.error_cost = 300 net.ipv4.route.error_burst = 1500 net.ipv4.route.gc_elasticity = 8 net.ipv4.route.mtu_expires = 600 net.ipv4.route.min_pmtu = 552 net.ipv4.route.min_adv_mss = 256 net.ipv4.neigh.default.mcast_solicit = 3 net.ipv4.neigh.default.ucast_solicit = 3 net.ipv4.neigh.default.app_solicit = 0 net.ipv4.neigh.default.retrans_time = 99 net.ipv4.neigh.default.base_reachable_time = 30 net.ipv4.neigh.default.delay_first_probe_time = 5 net.ipv4.neigh.default.gc_stale_time = 60 net.ipv4.neigh.default.unres_qlen = 32 net.ipv4.neigh.default.unres_qlen_bytes = 65536 net.ipv4.neigh.default.proxy_qlen = 64 net.ipv4.neigh.default.anycast_delay = 99 net.ipv4.neigh.default.proxy_delay = 79 net.ipv4.neigh.default.locktime = 99 net.ipv4.neigh.default.retrans_time_ms = 1000 net.ipv4.neigh.default.base_reachable_time_ms = 30000 net.ipv4.neigh.default.gc_interval = 30 net.ipv4.neigh.default.gc_thresh1 = 128 net.ipv4.neigh.default.gc_thresh2 = 512 net.ipv4.neigh.default.gc_thresh3 = 1024 net.ipv4.neigh.lo.mcast_solicit = 3 net.ipv4.neigh.lo.ucast_solicit = 3 net.ipv4.neigh.lo.app_solicit = 0 net.ipv4.neigh.lo.retrans_time = 99 net.ipv4.neigh.lo.base_reachable_time = 30 net.ipv4.neigh.lo.delay_first_probe_time = 5 net.ipv4.neigh.lo.gc_stale_time = 60 net.ipv4.neigh.lo.unres_qlen = 32 net.ipv4.neigh.lo.unres_qlen_bytes = 65536 net.ipv4.neigh.lo.proxy_qlen = 64 net.ipv4.neigh.lo.anycast_delay = 99 net.ipv4.neigh.lo.proxy_delay = 79 net.ipv4.neigh.lo.locktime = 99 net.ipv4.neigh.lo.retrans_time_ms = 1000 net.ipv4.neigh.lo.base_reachable_time_ms = 30000 net.ipv4.neigh.eth0.mcast_solicit = 3 net.ipv4.neigh.eth0.ucast_solicit = 3 net.ipv4.neigh.eth0.app_solicit = 0 net.ipv4.neigh.eth0.retrans_time = 99 net.ipv4.neigh.eth0.base_reachable_time = 30 net.ipv4.neigh.eth0.delay_first_probe_time = 5 net.ipv4.neigh.eth0.gc_stale_time = 60 net.ipv4.neigh.eth0.unres_qlen = 32 net.ipv4.neigh.eth0.unres_qlen_bytes = 65536 net.ipv4.neigh.eth0.proxy_qlen = 64 net.ipv4.neigh.eth0.anycast_delay = 99 net.ipv4.neigh.eth0.proxy_delay = 79 net.ipv4.neigh.eth0.locktime = 99 net.ipv4.neigh.eth0.retrans_time_ms = 1000 net.ipv4.neigh.eth0.base_reachable_time_ms = 30000 net.ipv4.neigh.vlan11.mcast_solicit = 3 net.ipv4.neigh.vlan11.ucast_solicit = 3 net.ipv4.neigh.vlan11.app_solicit = 0 net.ipv4.neigh.vlan11.retrans_time = 99 net.ipv4.neigh.vlan11.base_reachable_time = 30 net.ipv4.neigh.vlan11.delay_first_probe_time = 5 net.ipv4.neigh.vlan11.gc_stale_time = 60 net.ipv4.neigh.vlan11.unres_qlen = 32 net.ipv4.neigh.vlan11.unres_qlen_bytes = 65536 net.ipv4.neigh.vlan11.proxy_qlen = 64 net.ipv4.neigh.vlan11.anycast_delay = 99 net.ipv4.neigh.vlan11.proxy_delay = 79 net.ipv4.neigh.vlan11.locktime = 99 net.ipv4.neigh.vlan11.retrans_time_ms = 1000 net.ipv4.neigh.vlan11.base_reachable_time_ms = 30000 net.ipv4.neigh.vlan12.mcast_solicit = 3 net.ipv4.neigh.vlan12.ucast_solicit = 3 net.ipv4.neigh.vlan12.app_solicit = 0 net.ipv4.neigh.vlan12.retrans_time = 99 net.ipv4.neigh.vlan12.base_reachable_time = 30 net.ipv4.neigh.vlan12.delay_first_probe_time = 5 net.ipv4.neigh.vlan12.gc_stale_time = 60 net.ipv4.neigh.vlan12.unres_qlen = 32 net.ipv4.neigh.vlan12.unres_qlen_bytes = 65536 net.ipv4.neigh.vlan12.proxy_qlen = 64 net.ipv4.neigh.vlan12.anycast_delay = 99 net.ipv4.neigh.vlan12.proxy_delay = 79 net.ipv4.neigh.vlan12.locktime = 99 net.ipv4.neigh.vlan12.retrans_time_ms = 1000 net.ipv4.neigh.vlan12.base_reachable_time_ms = 30000 net.ipv4.neigh.vlan13.mcast_solicit = 3 net.ipv4.neigh.vlan13.ucast_solicit = 3 net.ipv4.neigh.vlan13.app_solicit = 0 net.ipv4.neigh.vlan13.retrans_time = 99 net.ipv4.neigh.vlan13.base_reachable_time = 30 net.ipv4.neigh.vlan13.delay_first_probe_time = 5 net.ipv4.neigh.vlan13.gc_stale_time = 60 net.ipv4.neigh.vlan13.unres_qlen = 32 net.ipv4.neigh.vlan13.unres_qlen_bytes = 65536 net.ipv4.neigh.vlan13.proxy_qlen = 64 net.ipv4.neigh.vlan13.anycast_delay = 99 net.ipv4.neigh.vlan13.proxy_delay = 79 net.ipv4.neigh.vlan13.locktime = 99 net.ipv4.neigh.vlan13.retrans_time_ms = 1000 net.ipv4.neigh.vlan13.base_reachable_time_ms = 30000 net.ipv4.tcp_timestamps = 1 net.ipv4.tcp_window_scaling = 1 net.ipv4.tcp_sack = 1 net.ipv4.tcp_retrans_collapse = 1 net.ipv4.ip_default_ttl = 64 net.ipv4.ip_no_pmtu_disc = 0 net.ipv4.ip_nonlocal_bind = 0 net.ipv4.tcp_syn_retries = 5 net.ipv4.tcp_synack_retries = 5 net.ipv4.tcp_max_orphans = 131072 net.ipv4.tcp_max_tw_buckets = 131072 net.ipv4.ip_dynaddr = 0 net.ipv4.tcp_keepalive_time = 7200 net.ipv4.tcp_keepalive_probes = 9 net.ipv4.tcp_keepalive_intvl = 75 net.ipv4.tcp_retries1 = 3 net.ipv4.tcp_retries2 = 15 net.ipv4.tcp_fin_timeout = 60 net.ipv4.tcp_syncookies = 1 net.ipv4.tcp_tw_recycle = 0 net.ipv4.tcp_abort_on_overflow = 0 net.ipv4.tcp_stdurg = 0 net.ipv4.tcp_rfc1337 = 0 net.ipv4.tcp_max_syn_backlog = 1024 net.ipv4.ip_local_port_range = 32768 61000 net.ipv4.ip_local_reserved_ports = net.ipv4.igmp_max_memberships = 20 net.ipv4.igmp_max_msf = 10 net.ipv4.inet_peer_threshold = 65664 net.ipv4.inet_peer_minttl = 120 net.ipv4.inet_peer_maxttl = 600 net.ipv4.tcp_orphan_retries = 0 net.ipv4.tcp_fack = 1 net.ipv4.tcp_reordering = 3 net.ipv4.tcp_ecn = 2 net.ipv4.tcp_dsack = 1 net.ipv4.tcp_wmem = 4096 16384 4194304 net.ipv4.tcp_rmem = 4096 87380 4194304 net.ipv4.tcp_app_win = 31 net.ipv4.tcp_adv_win_scale = 2 net.ipv4.tcp_tw_reuse = 0 net.ipv4.tcp_frto = 2 net.ipv4.tcp_frto_response = 0 net.ipv4.tcp_low_latency = 0 net.ipv4.tcp_no_metrics_save = 0 net.ipv4.tcp_moderate_rcvbuf = 1 net.ipv4.tcp_tso_win_divisor = 3 net.ipv4.tcp_congestion_control = cubic net.ipv4.tcp_abc = 0 net.ipv4.tcp_mtu_probing = 0 net.ipv4.tcp_base_mss = 512 net.ipv4.tcp_workaround_signed_windows = 0 net.ipv4.tcp_dma_copybreak = 4096 net.ipv4.tcp_slow_start_after_idle = 1 net.ipv4.cipso_cache_enable = 1 net.ipv4.cipso_cache_bucket_size = 10 net.ipv4.cipso_rbm_optfmt = 0 net.ipv4.cipso_rbm_strictvalid = 1 net.ipv4.tcp_available_congestion_control = cubic reno net.ipv4.tcp_allowed_congestion_control = cubic reno net.ipv4.tcp_max_ssthresh = 0 net.ipv4.tcp_cookie_size = 0 net.ipv4.tcp_thin_linear_timeouts = 0 net.ipv4.tcp_thin_dupack = 0 net.ipv4.udp_mem = 48267 64358 96534 net.ipv4.udp_rmem_min = 4096 net.ipv4.udp_wmem_min = 4096 net.ipv4.conf.all.forwarding = 0 net.ipv4.conf.all.mc_forwarding = 0 net.ipv4.conf.all.accept_redirects = 1 net.ipv4.conf.all.secure_redirects = 1 net.ipv4.conf.all.shared_media = 1 net.ipv4.conf.all.rp_filter = 0 net.ipv4.conf.all.send_redirects = 1 net.ipv4.conf.all.accept_source_route = 0 net.ipv4.conf.all.accept_local = 0 net.ipv4.conf.all.src_valid_mark = 0 net.ipv4.conf.all.proxy_arp = 0 net.ipv4.conf.all.medium_id = 0 net.ipv4.conf.all.bootp_relay = 0 net.ipv4.conf.all.log_martians = 0 net.ipv4.conf.all.tag = 0 net.ipv4.conf.all.arp_filter = 0 net.ipv4.conf.all.arp_announce = 0 net.ipv4.conf.all.arp_ignore = 0 net.ipv4.conf.all.arp_accept = 0 net.ipv4.conf.all.arp_notify = 0 net.ipv4.conf.all.proxy_arp_pvlan = 0 net.ipv4.conf.all.disable_xfrm = 0 net.ipv4.conf.all.disable_policy = 0 net.ipv4.conf.all.force_igmp_version = 0 net.ipv4.conf.all.promote_secondaries = 0 net.ipv4.conf.default.forwarding = 0 net.ipv4.conf.default.mc_forwarding = 0 net.ipv4.conf.default.accept_redirects = 1 net.ipv4.conf.default.secure_redirects = 1 net.ipv4.conf.default.shared_media = 1 net.ipv4.conf.default.rp_filter = 0 net.ipv4.conf.default.send_redirects = 1 net.ipv4.conf.default.accept_source_route = 1 net.ipv4.conf.default.accept_local = 0 net.ipv4.conf.default.src_valid_mark = 0 net.ipv4.conf.default.proxy_arp = 0 net.ipv4.conf.default.medium_id = 0 net.ipv4.conf.default.bootp_relay = 0 net.ipv4.conf.default.log_martians = 0 net.ipv4.conf.default.tag = 0 net.ipv4.conf.default.arp_filter = 0 net.ipv4.conf.default.arp_announce = 0 net.ipv4.conf.default.arp_ignore = 0 net.ipv4.conf.default.arp_accept = 0 net.ipv4.conf.default.arp_notify = 0 net.ipv4.conf.default.proxy_arp_pvlan = 0 net.ipv4.conf.default.disable_xfrm = 0 net.ipv4.conf.default.disable_policy = 0 net.ipv4.conf.default.force_igmp_version = 0 net.ipv4.conf.default.promote_secondaries = 0 net.ipv4.conf.lo.forwarding = 0 net.ipv4.conf.lo.mc_forwarding = 0 net.ipv4.conf.lo.accept_redirects = 1 net.ipv4.conf.lo.secure_redirects = 1 net.ipv4.conf.lo.shared_media = 1 net.ipv4.conf.lo.rp_filter = 0 net.ipv4.conf.lo.send_redirects = 1 net.ipv4.conf.lo.accept_source_route = 1 net.ipv4.conf.lo.accept_local = 0 net.ipv4.conf.lo.src_valid_mark = 0 net.ipv4.conf.lo.proxy_arp = 0 net.ipv4.conf.lo.medium_id = 0 net.ipv4.conf.lo.bootp_relay = 0 net.ipv4.conf.lo.log_martians = 0 net.ipv4.conf.lo.tag = 0 net.ipv4.conf.lo.arp_filter = 0 net.ipv4.conf.lo.arp_announce = 0 net.ipv4.conf.lo.arp_ignore = 0 net.ipv4.conf.lo.arp_accept = 0 net.ipv4.conf.lo.arp_notify = 0 net.ipv4.conf.lo.proxy_arp_pvlan = 0 net.ipv4.conf.lo.disable_xfrm = 1 net.ipv4.conf.lo.disable_policy = 1 net.ipv4.conf.lo.force_igmp_version = 0 net.ipv4.conf.lo.promote_secondaries = 0 net.ipv4.conf.eth0.forwarding = 0 net.ipv4.conf.eth0.mc_forwarding = 0 net.ipv4.conf.eth0.accept_redirects = 1 net.ipv4.conf.eth0.secure_redirects = 1 net.ipv4.conf.eth0.shared_media = 1 net.ipv4.conf.eth0.rp_filter = 0 net.ipv4.conf.eth0.send_redirects = 1 net.ipv4.conf.eth0.accept_source_route = 1 net.ipv4.conf.eth0.accept_local = 0 net.ipv4.conf.eth0.src_valid_mark = 0 net.ipv4.conf.eth0.proxy_arp = 0 net.ipv4.conf.eth0.medium_id = 0 net.ipv4.conf.eth0.bootp_relay = 0 net.ipv4.conf.eth0.log_martians = 0 net.ipv4.conf.eth0.tag = 0 net.ipv4.conf.eth0.arp_filter = 0 net.ipv4.conf.eth0.arp_announce = 0 net.ipv4.conf.eth0.arp_ignore = 0 net.ipv4.conf.eth0.arp_accept = 0 net.ipv4.conf.eth0.arp_notify = 0 net.ipv4.conf.eth0.proxy_arp_pvlan = 0 net.ipv4.conf.eth0.disable_xfrm = 0 net.ipv4.conf.eth0.disable_policy = 0 net.ipv4.conf.eth0.force_igmp_version = 0 net.ipv4.conf.eth0.promote_secondaries = 0 net.ipv4.conf.vlan11.forwarding = 0 net.ipv4.conf.vlan11.mc_forwarding = 0 net.ipv4.conf.vlan11.accept_redirects = 1 net.ipv4.conf.vlan11.secure_redirects = 1 net.ipv4.conf.vlan11.shared_media = 1 net.ipv4.conf.vlan11.rp_filter = 0 net.ipv4.conf.vlan11.send_redirects = 1 net.ipv4.conf.vlan11.accept_source_route = 1 net.ipv4.conf.vlan11.accept_local = 0 net.ipv4.conf.vlan11.src_valid_mark = 0 net.ipv4.conf.vlan11.proxy_arp = 0 net.ipv4.conf.vlan11.medium_id = 0 net.ipv4.conf.vlan11.bootp_relay = 0 net.ipv4.conf.vlan11.log_martians = 0 net.ipv4.conf.vlan11.tag = 0 net.ipv4.conf.vlan11.arp_filter = 0 net.ipv4.conf.vlan11.arp_announce = 0 net.ipv4.conf.vlan11.arp_ignore = 0 net.ipv4.conf.vlan11.arp_accept = 0 net.ipv4.conf.vlan11.arp_notify = 0 net.ipv4.conf.vlan11.proxy_arp_pvlan = 0 net.ipv4.conf.vlan11.disable_xfrm = 0 net.ipv4.conf.vlan11.disable_policy = 0 net.ipv4.conf.vlan11.force_igmp_version = 0 net.ipv4.conf.vlan11.promote_secondaries = 0 net.ipv4.conf.vlan12.forwarding = 0 net.ipv4.conf.vlan12.mc_forwarding = 0 net.ipv4.conf.vlan12.accept_redirects = 1 net.ipv4.conf.vlan12.secure_redirects = 1 net.ipv4.conf.vlan12.shared_media = 1 net.ipv4.conf.vlan12.rp_filter = 0 net.ipv4.conf.vlan12.send_redirects = 1 net.ipv4.conf.vlan12.accept_source_route = 1 net.ipv4.conf.vlan12.accept_local = 0 net.ipv4.conf.vlan12.src_valid_mark = 0 net.ipv4.conf.vlan12.proxy_arp = 0 net.ipv4.conf.vlan12.medium_id = 0 net.ipv4.conf.vlan12.bootp_relay = 0 net.ipv4.conf.vlan12.log_martians = 0 net.ipv4.conf.vlan12.tag = 0 net.ipv4.conf.vlan12.arp_filter = 0 net.ipv4.conf.vlan12.arp_announce = 0 net.ipv4.conf.vlan12.arp_ignore = 0 net.ipv4.conf.vlan12.arp_accept = 0 net.ipv4.conf.vlan12.arp_notify = 0 net.ipv4.conf.vlan12.proxy_arp_pvlan = 0 net.ipv4.conf.vlan12.disable_xfrm = 0 net.ipv4.conf.vlan12.disable_policy = 0 net.ipv4.conf.vlan12.force_igmp_version = 0 net.ipv4.conf.vlan12.promote_secondaries = 0 net.ipv4.conf.vlan13.forwarding = 0 net.ipv4.conf.vlan13.mc_forwarding = 0 net.ipv4.conf.vlan13.accept_redirects = 1 net.ipv4.conf.vlan13.secure_redirects = 1 net.ipv4.conf.vlan13.shared_media = 1 net.ipv4.conf.vlan13.rp_filter = 0 net.ipv4.conf.vlan13.send_redirects = 1 net.ipv4.conf.vlan13.accept_source_route = 1 net.ipv4.conf.vlan13.accept_local = 0 net.ipv4.conf.vlan13.src_valid_mark = 0 net.ipv4.conf.vlan13.proxy_arp = 0 net.ipv4.conf.vlan13.medium_id = 0 net.ipv4.conf.vlan13.bootp_relay = 0 net.ipv4.conf.vlan13.log_martians = 0 net.ipv4.conf.vlan13.tag = 0 net.ipv4.conf.vlan13.arp_filter = 0 net.ipv4.conf.vlan13.arp_announce = 0 net.ipv4.conf.vlan13.arp_ignore = 0 net.ipv4.conf.vlan13.arp_accept = 0 net.ipv4.conf.vlan13.arp_notify = 0 net.ipv4.conf.vlan13.proxy_arp_pvlan = 0 net.ipv4.conf.vlan13.disable_xfrm = 0 net.ipv4.conf.vlan13.disable_policy = 0 net.ipv4.conf.vlan13.force_igmp_version = 0 net.ipv4.conf.vlan13.promote_secondaries = 0 net.ipv4.ip_forward = 0 net.ipv4.xfrm4_gc_thresh = 524288 net.ipv4.ipfrag_high_thresh = 262144 net.ipv4.ipfrag_low_thresh = 196608 net.ipv4.ipfrag_time = 30 net.ipv4.icmp_echo_ignore_all = 0 net.ipv4.icmp_echo_ignore_broadcasts = 1 net.ipv4.icmp_ignore_bogus_error_responses = 1 net.ipv4.icmp_errors_use_inbound_ifaddr = 0 net.ipv4.icmp_ratelimit = 1000 net.ipv4.icmp_ratemask = 6168 net.ipv4.rt_cache_rebuild_count = 4 net.ipv4.ping_group_range = 1 0 net.ipv4.tcp_mem = 46683 62246 93366 net.ipv4.ipfrag_secret_interval = 600 net.ipv4.ipfrag_max_dist = 64 error: permission denied on key 'net.ipv6.route.flush' |
sleepycat |
|
Темы:
98
Сообщения:
3291
Участник с: 19 июля 2011
|
Не силен в vlan за неимением оборудования хорошего, но когда я прочитал , почемуто первое впечатление тоже было в сторону маршрутизации. Но в силу того , что не начем попробовать, решил не писать, чтобы не путать людей. Раз уж тупик, чирканул.
Лозунг у них был такой: "Познание бесконечности требует бесконечного времени". С этим я не спорил, но они делали из этого неожиданный вывод: "А потому работай не работай — все едино". И в интересах неувеличения энтропии Вселенной они не работали. (с)
|
chawoosh |
|
Темы:
4
Сообщения:
107
Участник с: 07 декабря 2011
|
У меня вывод раза в три длиннее, главное отличие - в начале и конце нет предупреждений о “permission denied”, имеет смысл покопать в ту сторону. |
artes |
|
Темы:
3
Сообщения:
36
Участник с: 12 июня 2009
|
Проблема с приемом нетегированного трафика решилась с очередным обновлением ядра до 3.3.6-1-ARCH. Была пофиксина именно эта проблема, если конечно я правильно понял написанное sky2: fix receive length error in mixed non-VLAN/VLAN traffic Но теперь, при выше описанных настройка, на родительском интерфейсе при попытке пропинговать подинтерфейс маршрутизатор на приеме tcpdump'ом ничего не видно, хотя счётчики на принимаемых пакетах в ifconfig увеличиваются. Linux# ping 192.168.11.1 PING 192.168.11.1 (192.168.11.1) 56(84) bytes of data. From 192.168.11.2 icmp_seq=1 Destination Host Unreachable From 192.168.11.2 icmp_seq=2 Destination Host Unreachable From 192.168.11.2 icmp_seq=3 Destination Host Unreachable Linux# tcpdump -nevvi eth0 tcpdump: WARNING: eth0: no IPv4 address assigned tcpdump: listening on eth0, link-type EN10MB (Ethernet), capture size 65535 bytes 11:43:19.109392 00:22:64:72:00:e5 > ff:ff:ff:ff:ff:ff, ethertype 802.1Q (0x8100), length 46: vlan 11, p 0, ethertype ARP, Ethernet (len 6), IPv4 (len 4), Request who-has 192.168.11.1 tell 192.168.11.2, length 28 11:43:21.103868 00:22:64:72:00:e5 > ff:ff:ff:ff:ff:ff, ethertype 802.1Q (0x8100), length 46: vlan 11, p 0, ethertype ARP, Ethernet (len 6), IPv4 (len 4), Request who-has 192.168.11.1 tell 192.168.11.2, length 28 11:43:22.106063 00:22:64:72:00:e5 > ff:ff:ff:ff:ff:ff, ethertype 802.1Q (0x8100), length 46: vlan 11, p 0, ethertype ARP, Ethernet (len 6), IPv4 (len 4), Request who-has 192.168.11.1 tell 192.168.11.2, length 28 11:43:23.109396 00:22:64:72:00:e5 > ff:ff:ff:ff:ff:ff, ethertype 802.1Q (0x8100), length 46: vlan 11, p 0, ethertype ARP, Ethernet (len 6), IPv4 (len 4), Request who-has 192.168.11.1 tell 192.168.11.2, length 28 11:43:24.112799 00:22:64:72:00:e5 > ff:ff:ff:ff:ff:ff, ethertype 802.1Q (0x8100), length 46: vlan 11, p 0, ethertype ARP, Ethernet (len 6), IPv4 (len 4), Request who-has 192.168.11.1 tell 192.168.11.2, length 28 tcpdump: listening on vlan11, link-type EN10MB (Ethernet), capture size 65535 bytes 11:43:51.156042 00:22:64:72:00:e5 > ff:ff:ff:ff:ff:ff, ethertype ARP (0x0806), length 42: Ethernet (len 6), IPv4 (len 4), Request who-has 192.168.11.1 tell 192.168.11.2, length 28 11:43:52.159393 00:22:64:72:00:e5 > ff:ff:ff:ff:ff:ff, ethertype ARP (0x0806), length 42: Ethernet (len 6), IPv4 (len 4), Request who-has 192.168.11.1 tell 192.168.11.2, length 28 11:43:54.153878 00:22:64:72:00:e5 > ff:ff:ff:ff:ff:ff, ethertype ARP (0x0806), length 42: Ethernet (len 6), IPv4 (len 4), Request who-has 192.168.11.1 tell 192.168.11.2, length 28 11:43:55.156058 00:22:64:72:00:e5 > ff:ff:ff:ff:ff:ff, ethertype ARP (0x0806), length 42: Ethernet (len 6), IPv4 (len 4), Request who-has 192.168.11.1 tell 192.168.11.2, length 28 11:43:56.159373 00:22:64:72:00:e5 > ff:ff:ff:ff:ff:ff, ethertype ARP (0x0806), length 42: Ethernet (len 6), IPv4 (len 4), Request who-has 192.168.11.1 tell 192.168.11.2, length 28 eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 metric 1 inet6 fe80::222:64ff:fe72:e5 prefixlen 64 scopeid 0x20<link> ether 00:22:64:72:00:e5 txqueuelen 1000 (Ethernet) RX packets 140 bytes 7840 (7.6 KiB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 161 bytes 7506 (7.3 KiB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 device interrupt 17 lo: flags=73<UP,LOOPBACK,RUNNING> mtu 16436 metric 1 inet 127.0.0.1 netmask 255.0.0.0 inet6 ::1 prefixlen 128 scopeid 0x10<host> loop txqueuelen 0 (Local Loopback) RX packets 169 bytes 17688 (17.2 KiB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 169 bytes 17688 (17.2 KiB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 vlan11: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 metric 1 inet 192.168.11.2 netmask 255.255.255.0 broadcast 192.168.11.255 inet6 fe80::222:64ff:fe72:e5 prefixlen 64 scopeid 0x20<link> ether 00:22:64:72:00:e5 txqueuelen 0 (Ethernet) RX packets 0 bytes 0 (0.0 B) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 143 bytes 6110 (5.9 KiB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 vlan12: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 metric 1 inet 192.168.12.2 netmask 255.255.255.0 broadcast 192.168.12.255 inet6 fe80::222:64ff:fe72:e5 prefixlen 64 scopeid 0x20<link> ether 00:22:64:72:00:e5 txqueuelen 0 (Ethernet) RX packets 0 bytes 0 (0.0 B) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 3 bytes 230 (230.0 B) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 vlan13: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 metric 1 inet 192.168.13.2 netmask 255.255.255.0 broadcast 192.168.13.255 inet6 fe80::222:64ff:fe72:e5 prefixlen 64 scopeid 0x20<link> ether 00:22:64:72:00:e5 txqueuelen 0 (Ethernet) RX packets 0 bytes 0 (0.0 B) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 3 bytes 230 (230.0 B) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 . . . [ 11.774177] sky2 0000:85:00.0: eth0: enabling interface [ 11.774470] ADDRCONF(NETDEV_UP): eth0: link is not ready [ 14.241611] sky2 0000:85:00.0: eth0: Link is up at 1000 Mbps, full duplex, flow control rx [ 14.241848] ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready [ 25.136688] eth0: no IPv6 routers present . . . [ 108.269109] sky2 0000:85:00.0: eth0: disabling interface [ 225.918256] 8021q: 802.1Q VLAN Support v1.8 [ 225.944627] sky2 0000:85:00.0: eth0: enabling interface [ 225.944971] ADDRCONF(NETDEV_UP): eth0: link is not ready [ 228.527792] sky2 0000:85:00.0: eth0: Link is up at 1000 Mbps, full duplex, flow control rx [ 228.528028] ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready [ 236.470051] vlan12: no IPv6 routers present [ 236.763383] vlan11: no IPv6 routers present [ 236.790004] vlan13: no IPv6 routers present [ 239.163376] eth0: no IPv6 routers present [ 371.010395] sky2 0000:85:00.0: eth0: rx error, status 0x3c2100 length 56 [ 372.013713] sky2 0000:85:00.0: eth0: rx error, status 0x3c2100 length 56 [ 373.017042] sky2 0000:85:00.0: eth0: rx error, status 0x3c2100 length 56 [ 483.786004] sky2 0000:85:00.0: eth0: rx error, status 0x3c2100 length 56 . . . [ 627.393575] sky2 0000:85:00.0: eth0: rx error, status 0x3c2100 length 56 [ 627.843760] device eth0 entered promiscuous mode [ 628.396946] sky2 0000:85:00.0: eth0: rx error, status 0x3c2100 length 56 [ 630.391415] sky2 0000:85:00.0: eth0: rx error, status 0x3c2100 length 56 [ 631.393619] sky2 0000:85:00.0: eth0: rx error, status 0x3c2100 length 56 . . . [ 633.400354] sky2 0000:85:00.0: eth0: rx error, status 0x3c2100 length 56 [ 634.356267] device eth0 left promiscuous mode [ 634.403589] sky2 0000:85:00.0: eth0: rx error, status 0x3c2100 length 56 [ 635.406921] sky2 0000:85:00.0: eth0: rx error, status 0x3c2100 length 56 [ 637.401444] sky2 0000:85:00.0: eth0: rx error, status 0x3c2100 length 56 . . . [ 659.440358] sky2 0000:85:00.0: eth0: rx error, status 0x3c2100 length 56 [ 659.668636] device vlan11 entered promiscuous mode [ 659.668640] device eth0 entered promiscuous mode [ 660.443605] sky2 0000:85:00.0: eth0: rx error, status 0x3c2100 length 56 [ 661.446949] sky2 0000:85:00.0: eth0: rx error, status 0x3c2100 length 56 [ 663.441436] sky2 0000:85:00.0: eth0: rx error, status 0x3c2100 length 56 . . . [ 665.446929] sky2 0000:85:00.0: eth0: rx error, status 0x3c2100 length 56 [ 665.944640] device vlan11 left promiscuous mode [ 665.944645] device eth0 left promiscuous mode [ 666.450326] sky2 0000:85:00.0: eth0: rx error, status 0x3c2100 length 56 [ 667.453609] sky2 0000:85:00.0: eth0: rx error, status 0x3c2100 length 56 [ 668.456921] sky2 0000:85:00.0: eth0: rx error, status 0x3c2100 length 56 . . . |
chawoosh |
|
Темы:
4
Сообщения:
107
Участник с: 07 декабря 2011
|
Чудеса в сетевой части бывают… У меня, как я уже писал, два сетевых интерфейса:04:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller (rev 06) 06:01.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ (rev 10) |
Natrio |
|
Темы:
48
Сообщения:
4771
Участник с: 08 января 2011
|
Не поднимается в смысле ip link eth0 set up или в смысле загрузки модуля? |
chawoosh |
|
Темы:
4
Сообщения:
107
Участник с: 07 декабря 2011
|
В rc.conf конструкцияinterface=eth1 address=192.168.21.188 netmask=255.255.255.0 broadcast=192.168.21.255 # interface=eth0 address=192.168.130.106 netmask=255.255.255.0 broadcast=192.168.130.255 gateway=192.168.130.100 netw="192.168.130.0/24 dev eth0" gatew="default via 192.168.130.100" ROUTES=(netw gatew) |
Natrio |
|
Темы:
48
Сообщения:
4771
Участник с: 08 января 2011
|
Ы… Такая конструкция никогда не работала и работать не может, потому что файл rc.conf это просто bash-скрипт, все параметры это ПРОСТО ПЕРЕМЕННЫЕ. Как вы уже правильно догадываетесь, наверное, если вы присвоите переменной последовательно два значения – в ней благополучно сохранится последнее. Настройка нескольких сетевых карт в rc.conf БЫЛА сделана через массивы, и её уже упразднили, оставили только упрощённую версию для одной. Читайте вики по rc.conf, netcfg или пишите свой собственный скрипт поднятия сети, вроде такого: viewtopic.php?p=77887#p77887 |