Author Topic: Interfaces question [SOLVED]  (Read 2061 times)

zolf

  • Zen Monk
  • **
  • Posts: 72
  • Karma: +0/-0
    • View Profile
Interfaces question [SOLVED]
« on: November 13, 2010, 07:24:32 am »
Hi there,

I have 4 NICs out of which two are connected to the local network.2 NICs i have assigned static ip but when i do ifconfig, it shows the following.the thing is eth1 has been assigned an ip address.i was wondering when this is not connected how is it getting ip.what about eth4 which has no ip.

[sudo] password for test:
eth1      Link encap:Ethernet  HWaddr 00:22:b0:e2:c1:02  
          inet addr:192.168.0.37  Bcast:192.168.0.255  Mask:255.255.255.0
          inet6 addr: fe80::222:b0ff:fee2:c102/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1492  Metric:1
          RX packets:1988 errors:0 dropped:0 overruns:0 frame:0
          TX packets:764 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:474629 (474.6 KB)  TX bytes:95844 (95.8 KB)
          Interrupt:19 Base address:0xc00

eth2      Link encap:Ethernet  HWaddr 00:22:2d:4c:7f:b1  
          inet addr:192.168.0.101  Bcast:192.168.0.255  Mask:255.255.255.0
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
          Interrupt:17 Base address:0xe000

eth3      Link encap:Ethernet  HWaddr 00:26:5a:08:5c:ac  
          inet addr:192.168.0.102  Bcast:192.168.0.255  Mask:255.255.255.0
          inet6 addr: fe80::226:5aff:fe08:5cac/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1492  Metric:1
          RX packets:4084 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1132 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:433190 (433.1 KB)  TX bytes:814022 (814.0 KB)
          Interrupt:16 Base address:0x8800

eth4      Link encap:Ethernet  HWaddr 20:cf:30:9f:02:ab  
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
          Interrupt:27 Base address:0x4000

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:929832 errors:0 dropped:0 overruns:0 frame:0
          TX packets:929832 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:176664805 (176.6 MB)  TX bytes:176664805 (176.6 MB)

test@ubuntu:~$ ^C
test@ubuntu:~$
« Last Edit: November 14, 2010, 09:29:53 am by zolf »

zolf

  • Zen Monk
  • **
  • Posts: 72
  • Karma: +0/-0
    • View Profile
Re: Interfaces question
« Reply #1 on: November 13, 2010, 08:25:57 am »

i have removed all the network cables and i can still ping the 192.168.0.101. very weird. also when i try yo change the ip to 192.168.0.103,i get error saying 192.168.0.9 ip exists.i dont understand.by the way the 192.168.0.9 is the ip of the router which is also the dhcp

To show technical details click here.

Trace
IP address 192.168.0.9 already exists. at /usr/share/perl5/EBox/Model/DataTable.pm line 3324
EBox::Model::DataTable::_checkFieldIsUnique('EBox::Network::Model::GatewayTable=HASH(0xb92c3d70)', 'EBox::Network::Types::Text::AutoReadOnly=HASH(0xbba2ea80)') called at /usr/share/perl5/EBox/Model/DataTable.pm line 1365
EBox::Model::DataTable::setTypedRow('EBox::Network::Model::GatewayTable=HASH(0xb92c3d70)', 'gate996', 'HASH(0xbba2eb50)', 'readOnly', 0, 'force', 1) called at /usr/share/perl5/EBox/Model/Row.pm line 608
EBox::Model::Row::storeElementByName('EBox::Model::Row=HASH(0xbba2ec00)', 'ip') called at /usr/share/perl5/EBox/Network/Model/GatewayTable.pm line 152
EBox::Network::Model::GatewayTable::syncRows('EBox::Network::Model::GatewayTable=HASH(0xb92c3d70)', 'ARRAY(0xbba2e640)') called at /usr/share/perl5/EBox/Model/DataTable.pm line 1595
EBox::Model::DataTable::ids('EBox::Network::Model::GatewayTable=HASH(0xb92c3d70)') called at /usr/share/ebox/templates/ajax/tableBody.mas line 57
HTML::Mason::Commands::__ANON__('model', 'EBox::Network::Model::GatewayTable=HASH(0xb92c3d70)', 'model', 'EBox::Network::Model::GatewayTable=HASH(0xb92c3d70)', 'hasChanged', 1, 'action', 'view') called at /usr/share/perl5/HTML/Mason/Component.pm line 135
HTML::Mason::Component::run('HTML::Mason::Component::Subcomponent=HASH(0xbb98b218)', 'model', 'EBox::Network::Model::GatewayTable=HASH(0xb92c3d70)', 'model', 'EBox::Network::Model::GatewayTable=HASH(0xb92c3d70)', 'hasChanged', 1, 'action', 'view', ...) called at /usr/share/perl5/HTML/Mason/Request.pm line 1284
eval {...} called at /usr/share/perl5/HTML/Mason/Request.pm line 1274
HTML::Mason::Request::comp(undef, undef, 'model', 'EBox::Network::Model::GatewayTable=HASH(0xb92c3d70)', 'model', 'EBox::Network::Model::GatewayTable=HASH(0xb92c3d70)', 'hasChanged', 1, 'action', ...) called at /usr/share/ebox/templates/ajax/modelViewer.mas line 151
HTML::Mason::Commands::__ANON__('model', 'EBox::Network::Model::GatewayTable=HASH(0xb92c3d70)') called at /usr/share/perl5/HTML/Mason/Component.pm line 135
HTML::Mason::Component::run('HTML::Mason::Component::Subcomponent=HASH(0xbb29f290)', 'model', 'EBox::Network::Model::GatewayTable=HASH(0xb92c3d70)') called at /usr/share/perl5/HTML/Mason/Request.pm line 1284
eval {...} called at /usr/share/perl5/HTML/Mason/Request.pm line 1274
HTML::Mason::Request::comp(undef, undef, 'model', 'EBox::Network::Model::GatewayTable=HASH(0xb92c3d70)') called at /usr/share/ebox/templates/ajax/modelViewer.mas line 69
HTML::Mason::Commands::__ANON__('model', 'EBox::Network::Model::GatewayTable=HASH(0xb92c3d70)', 'hasChanged', 1, 'action', 'view') called at /usr/share/perl5/HTML/Mason/Component.pm line 135
HTML::Mason::Component::run('HTML::Mason::Component::Subcomponent=HASH(0xbb29f3e0)', 'model', 'EBox::Network::Model::GatewayTable=HASH(0xb92c3d70)', 'hasChanged', 1, 'action', 'view') called at /usr/share/perl5/HTML/Mason/Request.pm line 1284
eval {...} called at /usr/share/perl5/HTML/Mason/Request.pm line 1274
HTML::Mason::Request::comp(undef, undef, 'model', 'EBox::Network::Model::GatewayTable=HASH(0xb92c3d70)', 'hasChanged', 1, 'action', 'view') called at /usr/share/ebox/templates/ajax/tableBody.mas line 19
HTML::Mason::Commands::__ANON__('model', 'EBox::Network::Model::GatewayTable=HASH(0xb92c3d70)', 'hasChanged', 1, 'action', 'view') called at /usr/share/perl5/HTML/Mason/Component.pm line 135
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0xbb98ad18)', 'model', 'EBox::Network::Model::GatewayTable=HASH(0xb92c3d70)', 'hasChanged', 1, 'action', 'view') called at /usr/share/perl5/HTML/Mason/Request.pm line 1284
eval {...} called at /usr/share/perl5/HTML/Mason/Request.pm line 1274
HTML::Mason::Request::comp(undef, undef, 'model', 'EBox::Network::Model::GatewayTable=HASH(0xb92c3d70)', 'hasChanged', 1, 'action', 'view') called at (eval 1683) line 181
HTML::Mason::Commands::__ANON__('model', 'EBox::Network::Composite::Gateway=HASH(0xbb8c9f80)', 'hasChanged', 1) called at /usr/share/perl5/HTML/Mason/Component.pm line 135
HTML::Mason::Component::run('HTML::Mason::Component=HASH(0xbb96d310)', 'model', 'EBox::Network::Composite::Gateway=HASH(0xbb8c9f80)', 'hasChanged', 1) called at /usr/share/perl5/HTML/Mason/Request.pm line 1284
eval {...} called at /usr/share/perl5/HTML/Mason/Request.pm line 1274
HTML::Mason::Request::comp(undef, undef, undef, 'model', 'EBox::Network::Composite::Gateway=HASH(0xbb8c9f80)', 'hasChanged', 1) called at /usr/share/perl5/HTML/Mason/Request.pm line 475
eval {...} called at /usr/share/perl5/HTML/Mason/Request.pm line 475
eval {...} called at /usr/share/perl5/HTML/Mason/Request.pm line 425
HTML::Mason::Request::exec('HTML::Mason::Request=HASH(0xbb96e878)') called at /usr/share/perl5/HTML/Mason/Interp.pm line 342
HTML::Mason::Interp::exec(undef, undef, 'model', 'EBox::Network::Composite::Gateway=HASH(0xbb8c9f80)', 'hasChanged', 1) called at /usr/share/perl5/EBox/CGI/Base.pm line 140
EBox::CGI::Base::_body('EBox::CGI::View::Composite=HASH(0xb92bea40)') called at /usr/share/perl5/EBox/CGI/Base.pm line 179
EBox::CGI::Base::_print('EBox::CGI::View::Composite=HASH(0xb92bea40)') called at /usr/share/perl5/EBox/CGI/Base.pm line 336
EBox::CGI::Base::run('EBox::CGI::View::Composite=HASH(0xb92bea40)') called at /usr/share/perl5/EBox/CGI/Run.pm line 120
EBox::CGI::Run::run('EBox::CGI::Run', 'Network/Composite/Gateway', 'EBox') called at /usr/share/ebox/cgi/ebox.cgi line 35
ModPerl::ROOT::ModPerl::Registry::usr_share_ebox_cgi_ebox_2ecgi::handler('Apache2::RequestRec=SCALAR(0xba43bdf0)') called at /usr/lib/perl5/ModPerl/RegistryCooker.pm line 204
eval {...} called at /usr/lib/perl5/ModPerl/RegistryCooker.pm line 204
ModPerl::RegistryCooker::run('ModPerl::Registry=HASH(0xb835ea30)') called at /usr/lib/perl5/ModPerl/RegistryCooker.pm line 170
ModPerl::RegistryCooker::default_handler('ModPerl::Registry=HASH(0xb835ea30)') called at /usr/lib/perl5/ModPerl/Registry.pm line 31
ModPerl::Registry::handler('ModPerl::Registry', 'Apache2::RequestRec=SCALAR(0xba43bdf0)') called at -e line 0
eval {...} called at -e line 0

eboxbuggy

  • Zen Monk
  • **
  • Posts: 89
  • Karma: +0/-0
    • View Profile
Re: Interfaces question
« Reply #2 on: November 13, 2010, 12:06:44 pm »
 :o dude please read the basics of networking ... you can't put all NICs on one subnet 192.168.0.0/24

do this instead
192.168.0.1/255.255.255.0
192.168.1.1/255.255.255.0
192.168.2.1/255.255.255.0
192.168.3.1/255.255.255.0
192.168.4.1/255.255.255.0
« Last Edit: November 13, 2010, 12:09:40 pm by eboxbuggy »