[Openstack-operators] About NIC

Razique Mahroua razique.mahroua at gmail.com
Mon Nov 12 09:21:52 UTC 2012


Can you try 
$ dmesg | grep eth
thanks

Nuage & Co - Razique Mahroua 
razique.mahroua at gmail.com



Le 8 nov. 2012 à 18:05, Stephen Liu <satimis at yahoo.com> a écrit :

> Hi,
> 
> Thanks for your advice. 
> 
> I see.  eth0 and eth1 are virtual NIC.
> 
> Performed following steps;
> 
> # ifconfig
> eth0      Link encap:Ethernet  HWaddr 00:26:18:44:b6:1a  
>           inet addr:192.168.0.10  Bcast:192.168.0.255  Mask:255.255.255.0
>           inet6 addr: fe80::226:18ff:fe44:b61a/64 Scope:Link
>           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
>           RX packets:2437 errors:0 dropped:0 overruns:0 frame:0
>           TX packets:2216 errors:0 dropped:0 overruns:0 carrier:1
>           collisions:0 txqueuelen:1000 
>           RX bytes:2427087 (2.4 MB)  TX bytes:344276 (344.2 KB)
>           Interrupt:42 
> 
> 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:368 errors:0 dropped:0 overruns:0 frame:0
>           TX packets:368 errors:0 dropped:0 overruns:0 carrier:0
>           collisions:0 txqueuelen:0 
>           RX bytes:61669 (61.6 KB)  TX bytes:61669 (61.6 KB)
> 
> # apt-get install bridge-utils
> 
> # gedit /etc/network/interfaces
> auto lo
> iface lo inet loopback
> 
> auto eth0 
>     iface eth0 inet static
>     address 192.168.0.11
>     network 192.168.0.0
>     netmask 255.255.255.0
>     broadcast 192.168.0.255
>     gateway 192.168.0.1
> 
> auto eth1
>     iface eth1 inet static
>     address 192.168.22.1
>     network 192.168.22.0
>     netmask 255.255.255.0
>     broadcast 192.168.22.255
> 
> # /etc/init.d/networking restart
>  * Running /etc/init.d/networking restart is deprecated because it may not enable again some interfaces
>  * Reconfiguring network interfaces...                                           * Disconnecting iSCSI targets
>    ...done.
>  * Stopping iSCSI initiator service
>    ...done.
>  * Starting iSCSI initiator service iscsid
>    ...done.
>  * Setting up iSCSI targets
>    ...done.
> ssh stop/waiting
> ssh start/running, process 3301
> Cannot find device "eth1"
> Failed to bring up eth1.
>                                                                          [ OK ]
> 
> # ifconfig
> eth0      Link encap:Ethernet  HWaddr 00:26:18:44:b6:1a  
>           inet addr:192.168.0.11  Bcast:192.168.0.255  Mask:255.255.255.0
>           inet6 addr: fe80::226:18ff:fe44:b61a/64 Scope:Link
>           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
>           RX packets:2839 errors:0 dropped:0 overruns:0 frame:0
>           TX packets:2693 errors:0 dropped:0 overruns:0 carrier:2
>           collisions:0 txqueuelen:1000 
>           RX bytes:2532982 (2.5 MB)  TX bytes:401990 (401.9 KB)
>           Interrupt:42 
> 
> 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:552 errors:0 dropped:0 overruns:0 frame:0
>           TX packets:552 errors:0 dropped:0 overruns:0 carrier:0
>           collisions:0 txqueuelen:0 
>           RX bytes:91141 (91.1 KB)  TX bytes:91141 (91.1 KB)
> 
> 
> # cat /etc/udev/rules.d/70-persistent-net.rules 
> .......
> .......
> # PCI device 0x1969:/sys/devices/pci0000:00/0000:00:06.0/0000:02:00.0 (ATL1E)
> SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:26:18:44:b6:1a", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"
> 
> Sorry I forgot how to edit this file.  I did it many times in the past.
> 
> Please advise.  TIA
> 
> B.R.
> Stephen L
> 
> 
> From: Razique Mahroua <razique.mahroua at gmail.com>
> To: Stephen Liu <satimis at yahoo.com> 
> Cc: "openstack-operators at lists.openstack.org" <openstack-operators at lists.openstack.org> 
> Sent: Friday, November 9, 2012 12:07 AM
> Subject: Re: [Openstack-operators] About NIC
> 
> Hey there, please find my answers above 
> Nuage & Co - Razique Mahroua 
> razique.mahroua at gmail.com
> 
> <NUAGECO-LOGO-Fblan_petit.jpg>
> 
> Le 8 nov. 2012 à 15:48, Stephen Liu <satimis at yahoo.com> a écrit :
> 
>> Hi all,
>> 
>> I'm following;
>> Installing OpenStack Essex (2012.1) on Ubuntu 12.04 ("Precise Pangolin")
>> http://www.hastexo.com/resources/docs/installing-openstack-essex-20121-ubuntu-1204-precise-pangolin
>> 
>> to install OpenStack on Ubuntu 12.04 desktop 64bit.
>> 
>> According to "Step 1: Prepare your System"
>> http://www.hastexo.com/resources/docs/installing-openstack-essex-4-ubuntu-1204-precise-pangolin/step-1-prepare-your-system
>> 
>> it needs 2 NICs for the test.  Please advise;
>> 
>> 1) 
>> Can I have one NIC to continue the test?   If NO then I'll install an additional NIC on this PC.
> Yes you can only have one NIC, make sure to update all the settings accordingly.
> You can also create an alias (eth0:0) or a new ip on the interface (ip addr add XXXX/Y dev eth0)
> 
>> 
>> 2)
>> I suppose
>> 
>> auto eth1
>> iface eth1 inet static
>> address 192.168.22.1
>> .....
>> ....
>> 
>> is to connect Internet?  The setting on my router is "192.168.0.0 up".  Can I set the address according to the settings on my router?
> It depends on what you are trying yo achieve, but if you have an extra interface, it won't need to access to the internet, eth0 would be good for that
>> 
>> 3)
>> I suppose eth0 is for internal connection.  Should I set the entries exactly identical to the instruction?
> Nope, totally up to you. I usually have three interfaces : eth0 for internet acces, eth1 for internal network and eth3 for rescue/admin access
> 
>> 
>> TIA
> sure :)
> 
>> 
>> B.R.
>> Stephen L
>> _______________________________________________
>> OpenStack-operators mailing list
>> OpenStack-operators at lists.openstack.org
>> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators
> 
> 
> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-operators/attachments/20121112/b45d929c/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: NUAGECO-LOGO-Fblan_petit.jpg
Type: image/jpeg
Size: 10122 bytes
Desc: not available
URL: <http://lists.openstack.org/pipermail/openstack-operators/attachments/20121112/b45d929c/attachment.jpg>


More information about the OpenStack-operators mailing list