ALT Linux Sisyphus discussions
 help / color / mirror / Atom feed
From: Alexey Shabalin <a.shabalin@gmail.com>
To: ALT Linux Sisyphus discussions <sisyphus@lists.altlinux.org>
Subject: Re: [sisyphus] Interface bonding и default route через него.
Date: Tue, 6 Nov 2018 23:07:15 +0300
Message-ID: <CAEdvWkRkLrjkKOS3uNEpzhYcn8dC7Ec5FccAkfQfbeM0G6=Gog@mail.gmail.com> (raw)
In-Reply-To: <CAA8E9_t4Br2ODQVUBpiMAKACtU=ejR-zYbt-zWYPFkDpCBQfxg@mail.gmail.com>

вт, 6 нояб. 2018 г. в 15:32, Yuri Khachaturyan <yukh@yukh.ru>:
>
> Добрый день!
>
> Имеется 3 сетевых интерфейса:
>
> eth2 - 172.31.255.222/24 для управления в случае если bond отвалится
>
> eth0 + eth1 объединены в bond0:
>
> [root@home ifaces]# cat bond0/options
> TYPE=bond
> ONBOOT=yes
> BOOTPROTO=static
> HOST="eth0 eth1"
> BONDMODE=4
> BONDOPTIONS="miimon=100"
>
> [root@home ifaces]# cat eth0/options
> TYPE=eth
> ONBOOT=yes
> BOOTPROTO=static
> STARTMODE=off
> USERCTL=no
> SLAVE=yes
> MASTER=bond0
> NM_CONTROLLED=no
>
>
> [root@home ifaces]# cat eth1/options
> TYPE=eth
> ONBOOT=yes
> BOOTPROTO=static
> STARTMODE=off
> USERCTL=no
> SLAVE=yes
> MASTER=bond0
> NM_CONTROLLED=no
>
>
> С обратной стороны CIsco Catalyst:
>
> interface Port-channel1
>  switchport trunk encapsulation dot1q
>  switchport trunk allowed vlan 275
>  switchport mode trunk
>
> interface GigabitEthernet0/14
>  description trunk home.yukh.ru
>  switchport trunk encapsulation dot1q
>  switchport trunk allowed vlan 275
>  switchport mode trunk
>  channel-group 1 mode active
> !
> interface GigabitEthernet0/15
>  description trunk home.yukh.ru
>  switchport trunk encapsulation dot1q
>  switchport trunk allowed vlan 275
>  switchport mode trunk
>  channel-group 1 mode active
>
> sw.home.yukh.ru#sh etherchannel summary
> Flags:  D - down        P - bundled in port-channel
>         I - stand-alone s - suspended
>         H - Hot-standby (LACP only)
>         R - Layer3      S - Layer2
>         U - in use      f - failed to allocate aggregator
>
>         M - not in use, minimum links not met
>         u - unsuitable for bundling
>         w - waiting to be aggregated
>         d - default port
>
>
> Number of channel-groups in use: 1
> Number of aggregators:           1
>
> Group  Port-channel  Protocol    Ports
> ------+-------------+-----------+-----------------------------------------------
> 1      Po1(SU)         LACP      Gi0/14(P)   Gi0/15(P)
>
>
>
> Интерфейсы подняты, все вроде бы нормально, но есть одно но:
>
> # ip ro
> default via 172.31.255.253 dev eth2 - все работает
>
> #ip ro
> default via 172.31.255.253 dev bond0 - внутреннюю сеть вижу, но дальше роутера ничего не уходит:
>
> [root@home ifaces]# ping 172.31.255.253
> PING 172.31.255.253 (172.31.255.253) 56(84) bytes of data.
> 64 bytes from 172.31.255.253: icmp_seq=1 ttl=255 time=1.24 ms
> 64 bytes from 172.31.255.253: icmp_seq=2 ttl=255 time=0.678 ms
> ^C
> --- 172.31.255.253 ping statistics ---
> 2 packets transmitted, 2 received, 0% packet loss, time 2ms
> rtt min/avg/max/mdev = 0.678/0.961/1.244/0.283 ms
>
>
> [root@home ifaces]# ping 92.39.129.42
> PING 92.39.129.42 (92.39.129.42) 56(84) bytes of data.
> From 172.31.255.254 icmp_seq=1 Destination Host Unreachable
> From 172.31.255.254 icmp_seq=2 Destination Host Unreachable
> From 172.31.255.254 icmp_seq=3 Destination Host Unreachable
>
>
> [root@home ifaces]# traceroute 92.39.129.42
> traceroute to 92.39.129.42 (92.39.129.42), 30 hops max, 60 byte packets
>  1  home.yukh.ru (172.31.255.254)  3106.504 ms !H  3106.474 ms !H  3106.460 ms !H
>
>
> В чем может быть проблема и как ее решить?
>
У Вас коммутатор отдаёт trunk vlan 275. Это тэгированный трафик.
Вам надо настроить интерфейс типа vlan по верх bond0, у которого будет
HOST=bond0,
и назначить на него ip адрес. На этом же интерфейсе в настройках
укажите default gw.

           reply	other threads:[~2018-11-06 20:07 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <CAA8E9_t4Br2ODQVUBpiMAKACtU=ejR-zYbt-zWYPFkDpCBQfxg@mail.gmail.com>]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAEdvWkRkLrjkKOS3uNEpzhYcn8dC7Ec5FccAkfQfbeM0G6=Gog@mail.gmail.com' \
    --to=a.shabalin@gmail.com \
    --cc=shaba@altlinux.ru \
    --cc=sisyphus@lists.altlinux.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Sisyphus discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \
		sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru
	public-inbox-index sisyphus

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.sisyphus


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git