How to manually configure eth0 in Ubuntu?
I don't have any DHCP server. Do I need IP address when I am just going to capture packets?
|
|
|||||
migrated from serverfault.com Mar 19 '11 at 9:02This question came from our site for system and network administrators. |
|||||
|
|||||
|
You may want to try this as well:
|
||||
|
|
or
|
|||||
|
|
I am not sure what you exactly mean by your question. The really manual method has been described above, but since you write you don't have DHCP, I think you rather would like to know what to do to give your box a static IP address and assign this IP address at boot time automatically. Well, here is how: There should be a file For example, my
The first two lines are standard and may already look similar on your box. You may be interested especially in the rest of the file: These lines define a static network configuration to eth0 (without DHCP), and this static configuration gets active automatically on every boot. |
||||
|
|
|
You don't need IP address for capturing packets in promiscuous mode (when you want to capture all traffic, not just traffic destined to your computer). You can put that interface up using command
This do not assign IPv4 address to interface (IPv6 local-link address is automatically assigned, if you have IPv6 enabled). |
|||
|
|