Current time: 04-26-2024, 06:41 AM Hello There, Guest! (LoginRegister)


Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
ispcp_network is setting wrong mask and broadcast
Author Message
techie Offline
Newbie
*

Posts: 6
Joined: Aug 2009
Reputation: 0
Post: #2
Smile RE: ispcp_network is setting wrong mask and broadcast
in /var/www/ispcp/engine/tools/

"ispcp-net-interfaces-mngr" file;

I added my real netmask 255.255.255.0 in virtual_netcard_add()
line 93:

Code:
if (defined($ip_card)){
                        push_el(\@main::el, 'virtual_netcard_add()', "$main::cfg{'CMD_IFCONFIG'} ${ip_card}:${ip_id} ${ip_number}
netmask 255.255.255.0  up");
                        $rs = sys_command("$main::cfg{'CMD_IFCONFIG'} ${ip_card}:${ip_id} ${ip_number} netmask 255.255.255.0 up");

and virtual_netcard_remove() function
line 125
Code:
my $ip_number  = @$_[1];
                my $ip_card = @$_[2];

                push_el(\@main::el, 'virtual_netcard_remove()', "$main::cfg{'CMD_IFCONFIG'} ${ip_card}:${ip_id} netmask
255.255.255.0 down");
                $rs = sys_command("$main::cfg{'CMD_IFCONFIG'} ${ip_card}:${ip_id} netmask 255.255.255.0 down");

It could be better that netmask also can be defined with alias ip adresses via control panel.
11-30-2009 08:50 PM
Find all posts by this user Quote this message in a reply
Post Reply 


Messages In This Thread
RE: ispcp_network is setting wrong mask and broadcast - techie - 11-30-2009 08:50 PM

Forum Jump:


User(s) browsing this thread: 1 Guest(s)