cannot add pppoe interface in cli

PPPoE related questions
Post Reply
hashbang
Posts: 137
Joined: 12 Jul 2015, 10:28

cannot add pppoe interface in cli

Post by hashbang »

Hi,
I'd got 2 instances running.
instance 1 : ens5f1
instance 2 : ens4f1
On instance 2 i cannot add pppoe interface from accel-cmd. It accepts the command but no interface in show command. If u add the interface in conf file and restart the service. It adds the ppooe server on interface. Regular expression seems to be working. on 2nd instance in interface=re:ens4f1\.[1-1000]. Please assist
ty
dimka88
Posts: 866
Joined: 13 Oct 2014, 05:51
Contact:

Re: cannot add pppoe interface in cli

Post by dimka88 »

Hi, hashbang.

For different instance you have to use different [CLI]tcp=127.0.0.1:port and use this port as arg for accel-cmd

For instance 1:
accel-cmd -p <Instance 1 port> pppoe interface add ens5f1.100
For instance 2:
accel-cmd -p <Instance 2 port> pppoe interface add ens4f1.200

Code: Select all

accel-cmd -h
Usage:	accel-cmd [-v] [-4] [-6] [-n] [-f FAMILY] [-H HOST] [-p PORT] [-t TIMEOUT] [COMMAND]

	-f, --family	- Set protocol family to use for communicating with HOST. FAMILY can be set to "inet" (IPv4), "inet6" (IPv6) or "unspec" (automatic).
	-4		- Shortcut for --family=inet.
	-6		- Shortcut for --family=inet6.
	-n, --numeric	- Avoid name resolution for HOST and PORT.
	-H, --host	- Set hostname, or IP address, to communicate with. Defaults to "localhost".
	-p, --port	- Set remote port to use for communicating with HOST. Defaults to "2001".
	-t, --timeout	- Set inactivity timeout.
	-P, --password	- Set password for accessing HOST.
	-v, --verbose	- Verbose output.
	-V, --version	- Display version number and exit.
	-h, --help	- Display this help message and exit.

	COMMAND is the accel-ppp command line to be executed (if omitted, commands are read from standard input).
	The "help" command can be used (e.g. "accel-cmd help") to get information about available commands and their syntax.
hashbang
Posts: 137
Joined: 12 Jul 2015, 10:28

Re: cannot add pppoe interface in cli

Post by hashbang »

ty,
they are on different ports
accel-cmd -p 2002 pppoe interface add enp2s0f1.203

accel-cmd -p 2002 pppoe interface show

interface: connections: state:
-----------------------------------
enp2s0f1 0 active
in conf file
interface=enp2s0f1
if i change this to regular expression
interface=re:enp2s0f1\.
then it adds in cli
thanks
Post Reply