Hello all,
I have a PPPoE interface attached to a eth0 in a VE environment (VMWare).
After a modem hangup, this pppoe interface lease his IP address and stop to communicate.
I need to login in gateway Web page, go to interfaces, edit the pppoe interface and set to off, save and set to on again.
Only after this, I have communication again on this interface.
So, there is a command, or a job to do this OFF, ON automatically when this interfaces losing communication?
There is any command to avoid this hangup?
Here are the logs from /var/messages when Modem hangup and when I put OFF / ON the interface.
Aug 9 11:11:41 2020 gwckp01 dhclient: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 8
Aug 9 11:11:49 2020 gwckp01 dhclient: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 13
Aug 9 11:12:02 2020 gwckp01 dhclient: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 14
Aug 9 11:12:16 2020 gwckp01 dhclient: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 14
Aug 9 11:12:30 2020 gwckp01 dhclient: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 12
Aug 9 11:12:42 2020 gwckp01 dhclient: No DHCPOFFERS received.
Aug 9 11:12:42 2020 gwckp01 dhclient: No working leases in persistent database - sleeping.
Aug 9 11:16:29 2020 gwckp01 pppd[27326]: LCP terminated by peer
Aug 9 11:16:29 2020 gwckp01 pppd[27326]: Connect time 2880.0 minutes.
Aug 9 11:16:29 2020 gwckp01 pppd[27326]: Sent 11231907 bytes, received 5368495 bytes.
Aug 9 11:16:29 2020 gwckp01 kernel: [fw4_0];update_if_info: SIM is not active for device 0
Aug 9 11:16:29 2020 gwckp01 kernel: [SIM4];drv_if_remove_interface: Invalid ifn -1
Aug 9 11:16:29 2020 gwckp01 pppd[27326]: Modem hangup
Aug 9 11:16:29 2020 gwckp01 pppd[27326]: Connection terminated.
Aug 9 11:16:29 2020 gwckp01 pppd[27326]: Failed to disconnect PPPoE socket: 114 Operation already in progress
Aug 9 11:16:29 2020 gwckp01 pppd[27326]: Exit.
Aug 9 11:16:30 2020 gwckp01 ntpd[10195]: Deleting interface #12 pppoe1, XXX.XXX.XXX.XXX#123, interface stats: received=0, sent=0, dropped=0, active_time=172800 secs
Aug 9 11:17:48 2020 gwckp01 dhclient: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 7
Aug 9 11:17:55 2020 gwckp01 dhclient: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 9
Aug 9 11:18:04 2020 gwckp01 dhclient: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 19
Aug 9 11:18:23 2020 gwckp01 dhclient: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 7
Aug 9 11:18:30 2020 gwckp01 dhclient: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 8
Aug 9 11:18:38 2020 gwckp01 dhclient: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 11
Aug 10 10:15:26 2020 gwckp01 xpand[10193]: show_asset CDK: asset_get_proc started.
Aug 10 10:15:26 2020 gwckp01 xpand[10193]: netis_get_driver_info:Cannot get driver information for pppoe1, No such device
Aug 10 10:15:35 2020 gwckp01 dhclient: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 15
Aug 10 10:15:48 2020 gwckp01 xpand[10193]: PPPoE_Finalize reconfiguring pppoe1
Aug 10 10:15:50 2020 gwckp01 dhclient: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 16
Aug 10 10:15:50 2020 gwckp01 xpand[10193]: log info: objectName: Interfaces,administrator: admin, operation: Set Object, facility: Web-UI, message: Logical interface (pppoe1) state is set to off
Aug 10 10:15:50 2020 gwckp01 xpand[10193]: admin localhost t +pppoe:1:state off
Aug 10 10:15:50 2020 gwckp01 xpand[10193]: admin localhost t +interface:pppoe1:state off
Aug 10 10:15:50 2020 gwckp01 xpand[10193]: Configuration changed from localhost by user admin
Aug 10 10:15:50 2020 gwckp01 cpd: auditLogClient::sendLog>Send log successfully
Aug 10 10:15:50 2020 gwckp01 xpand[10193]: Configuration changed from localhost by user admin
Aug 10 10:15:50 2020 gwckp01 ipstcl2: regStrCmp: Match found of the string msg at pattern msg (0,3)
Aug 10 10:15:50 2020 gwckp01 ipstcl2: check_special_char: The key msg is allowed to have special character at it's value
Aug 10 10:16:06 2020 gwckp01 dhclient: No DHCPOFFERS received.
Aug 10 10:16:06 2020 gwckp01 dhclient: No working leases in persistent database - sleeping.
Aug 10 10:17:40 2020 gwckp01 xpand[10193]: PPPoE_Finalize reconfiguring pppoe1
Aug 10 10:17:41 2020 gwckp01 pppd[28633]: Plugin rp-pppoe.so loaded.
Aug 10 10:17:41 2020 gwckp01 pppd[28633]: RP-PPPoE plugin version 3.3 compiled against pppd 2.4.4
Aug 10 10:17:41 2020 gwckp01 pppd[28638]: pppd 2.4.4 started by admin, uid 0
Aug 10 10:17:41 2020 gwckp01 pppd[28638]: PPP session is 1
Aug 10 10:17:41 2020 gwckp01 kernel: [fw4_0];create_oftab_entry: Global gave ifn 10 for ppp0, but it's used for pppoe1
Aug 10 10:17:41 2020 gwckp01 kernel: [fw4_0];fwlinux_register_new_if: failed to create new oftab entry for ppp0
Aug 10 10:17:41 2020 gwckp01 kernel: [fw4_0];fwlinux_kern_device_event: could not find ifn for interface ppp0
Aug 10 10:17:41 2020 gwckp01 pppd[28638]: Using interface pppoe1
Aug 10 10:17:41 2020 gwckp01 pppd[28638]: Connect: pppoe1 <--> eth0
Aug 10 10:17:41 2020 gwckp01 kernel: [SIM4]; drv_if_update_interface: global ifnum not found for (vsid = 0)
Aug 10 10:17:41 2020 gwckp01 pppd[28638]: Remote message: Login ok
Aug 10 10:17:41 2020 gwckp01 pppd[28638]: PAP authentication succeeded
Aug 10 10:17:41 2020 gwckp01 pppd[28638]: peer from calling number XX:XX:XX:XX:XX:XX authorized
Aug 10 10:17:41 2020 gwckp01 pppd[28638]: local IP address XXX.XXX.XXX.XXX
Aug 10 10:17:41 2020 gwckp01 pppd[28638]: remote IP address XXX.XXX.XXX.XXX
Aug 10 10:17:41 2020 gwckp01 kernel: [fw4_0];update_if_info: SIM is not active for device 0
Aug 10 10:17:42 2020 gwckp01 xpand[10193]: log info: objectName: Interfaces,administrator: admin, operation: Set Object, facility: Web-UI, message: Logical interface (pppoe1) state is set to on
Aug 10 10:17:42 2020 gwckp01 xpand[10193]: admin localhost t +pppoe:1:state on
Aug 10 10:17:42 2020 gwckp01 xpand[10193]: admin localhost t +interface:pppoe1:state on