tinc
tinc copied to clipboard
centos7.3 install and configure tinc-1.0.35 with yum, why can't tun interface be generated after tinc service is started
[rootebranch tincl# tree -liTinet --hosts ----branch ----head --rsa_key.priv --tinc.conf --tinc-down --tinc-up -nets.boot
[ rootebranch liTinet# grep-Ev '^$|^#' tinc. conf Name=branch AddressFamily =ipv4 Interface=tun0 ConnectTo=head
[ rootebranch liTinetl# grep-Ev '^$|^#' tinc-up ifconf ig $INTERFACE 100.0.0.11 netmask 255.255.255.0 ip route add 22.0.0.0/8 dev $INTERFACE
[rootebranch liTinet]# grep-Ev '^$|^#' hosts/branch subnet=11.0.0.0/8 -BEGIN RSA PUBLIC KEY----- 1I IBCgKCAQEAWIbFWtoM+uDBBbBk IUgBC1pu+ZQu57XbgQ1D06903+k4FPEBVgMG t7H7kXtapL75EPBc i IFzUY8FBRlyk4DevE2iOEccy6+j2FcWTZT18yf7gb/zaeU 1iRtdsrUk6DQhA1F+EGX(PZYf I41pJU3XUKaUZ 1KaLRuvsYQIS80Dh0 I09XTq7FX mCL+Xg7tu8BtAX0u+D/7ESrJ6xtG,. jmonnF. jCTgt47rHvekTf 72PBFL(OTG3Z/6cu LJWX5RNL8N3SaCREgr53ezKqC. jfckSBN98S7YbvYUh5ad50LoBpJz9LI8Xhx2sS nF+J0. jakGuAAogGg+/dsdSrJtEHbkb4BWIDAQA —-END RSA PUBLIC KEY-----
[ rootebranch liTinet]# systemctl status tinc tinc. service-Tinc UPN Loaded: loaded(/usr/lib/systemd/system/tinc. service; disabled; vendor pres Active: active (exited) since Wed 2020-06-18 03:36:39 CST;6s ago
[rootebranch 1iTinet]#lsmod |grep tun tun 27226 0
tincd -n liTinet -d5 -D Sending 515 bytes of metadata to head (32.0.0.2 port 655) Flushing 1842 bytes to head (32.0.0.2 port 655) Bogus data received from head (32.0.0.2 port 655) Closing connection with head (32.0.0.2 port 655) Could not set up a meta connection to head Trying to re-establish outgoing conmection in 115 seconds Purging unreachable nodes Trying to connect to head (32.0.0.2 port 655) Connected to head(32.0.0.2 port 655) Sending ID to head (32.0.0.2 port 655):8 branch 17 Sending 12 bytes of metadata to head (32.0.0.2 port 655) Flushing 12 bytes to head (32.0.0.2 port 655) Got ID from head (32.0.0.2 port 655):0 head 17
[ rootebranch 1iTinet]# ip add 1:1o:<LOOPBACK, UP, LOWER_UP>mtu 65536 qdisc nocueue state UNKNOWN (len 1 link/loopback 80:08:00:08:00:08 brd 80:08:00:08:00:08 inet 127.0.0.1/8 scope host 1o valid_lft forever preferred_Ift forever inet6::1/128 scope host valid_lft forever preferred_lft forever 2: eth0:<BROADCAST, MULTICAST, UP, LOWER_UP> mtu 1500 qdisc pfifo fast state UP qlen link/ether 50:00:08:04:08:800 brd ff: ff: ff: ff: ff: ff inet 11.0.0.11/8 brd 11.255.255.255 scope global eth0 alid_lft forever preferred_Ift forever inet6 fe80::6b6:f8ad:4a1f:e786/64 scope link alid_lft forever preferred_Ift forever
Same issue here, even on CentOS 8.2.
# ethtool cust0
Settings for cust0:
Supported ports: [ ]
Supported link modes: Not reported
Supported pause frame use: No
Supports auto-negotiation: No
Supported FEC modes: Not reported
Advertised link modes: Not reported
Advertised pause frame use: No
Advertised auto-negotiation: No
Advertised FEC modes: Not reported
Speed: 10Mb/s
Duplex: Full
Port: Twisted Pair
PHYAD: 0
Transceiver: internal
Auto-negotiation: off
MDI-X: Unknown
Current message level: 0xffffffa1 (-95)
drv ifup tx_err tx_queued intr tx_done rx_status pktdata hw wol 0xffff8000
Link detected: yes
Not sure if this is a CentOS specific issue, probably needs more investigation.