|
From: Serge L. <ser...@gm...> - 2013-08-21 06:02:55
|
well, to avoid the image rebuilding, please try to replace the appropriate
sections in /etc/init.d/network
vlan creation:
------------------------------------------------
# vlan-id needs to be a number. id's 0 and 4095 are reserved
if test -n "$VLANID" -a "$VLANID" -gt 0 -a "$VLANID" -lt 4095 2>/dev/null; then
echo -n "Setting vlan #$VLANID on physical interface $DEVICE"
PHYDEV=$DEVICE
DEVICE=$(get_vlan_name "$PHYDEV" "$VLANID")
ip link add link $PHYDEV name $DEVICE type vlan id $VLANID
evaluate_retval
fi
------------------------------------------------
vlan removal
------------------------------------------------
# vlan-id's 0 and 4095 are reserved
if test -n "$VLANID" -a "$VLANID" -gt 0 -a "$VLANID" -lt 4095 2>/dev/null; then
echo -n "Removing vlan #$VLANID from physical interface $PHYDEV"
ip link del $DEVICE type vlan id $VLANID
evaluate_retval
fi
------------------------------------------------
The whole script is in the attachment.
works for me (c)
Sincerely,
Serge
On 08/20/2013 10:14 PM, Philippe Weill wrote:
> Le 20/08/2013 09:37, Olivier Thauvin a écrit :
>> Hello,
>>
>> I am trying to setup a firewall under Devil Linux 1.6.3.
>>
>> When I try to run vconfig I get: "no such file or directory". An strace
>> mention the error occur once the command is call. I saw this kind of
>> behavior before when applications were linked against obsolete glibc.
>>
>> Notice seting up vlan interface work from initscript.
>
>
> on another version the problem seem the same
> vconfig is 32bit with old libc on 64bit devil
>
>
> root@XXXXXXX:~ # cat /etc/Devil-release
> Devil-Linux 1.6.4-2013-01-21-x86_64
> root@XXXXXXX:~ # uname -a
> Linux el-diablo2.private.ipsl.fr 3.2.35-grsec #1 SMP Mon Jan 21 04:47:47 EST 2013 x86_64 GNU/Linux
> root@XXXXXXX:~ # file /bin/ls
> /bin/ls: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked (uses shared
> libs), for GNU/Linux 2.6.0, stripped
> root@XXXXXXX:~ # file /bin/vconfig
> /bin/vconfig: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses
> shared libs), for GNU/Linux 2.2.5, stripped
>
>
>
>
>
>>
>> Regards.
>>
>> ==== Strace output: ====
>>
>> root@Devil:~ # strace vconfig
>> execve("/bin/vconfig", ["vconfig"], [/* 17 vars */]) = -1 ENOENT (No
>> such file or directory)
>> dup(2) = 3
>> fcntl(3, F_GETFL) = 0x8002 (flags
>> O_RDWR|O_LARGEFILE)
>> fstat(3, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 0), ...}) = 0
>> mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
>> = 0x7f630d176000
>> lseek(3, 0, SEEK_CUR) = -1 ESPIPE (Illegal seek)
>> write(3, "strace: exec: No such file or di"..., 40strace: exec: No such
>> file or directory
>> ) = 40
>> close(3) = 0
>> munmap(0x7f630d176000, 4096) = 0
>> exit_group(1) = ?
>>
>>
>>
>>
>> ------------------------------------------------------------------------------
>> Introducing Performance Central, a new site from SourceForge and
>> AppDynamics. Performance Central is your source for news, insights,
>> analysis and resources for efficient Application Performance Management.
>> Visit us today!
>> http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk
>>
>>
>>
>> _______________________________________________
>> Devil-linux-develop mailing list
>> Dev...@li...
>> https://lists.sourceforge.net/lists/listinfo/devil-linux-develop
>>
>
>
|