Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

How do you change network settings?

ifconfig gives ip 192.168.122.1

(I ping it and the Ethernet card works)

I use sudo vi /etc/network/interfeces then after editing

auto eth0 
ifaces eth0 inet dhcp

I can not save it. How to save settings?

share|improve this question
    
1. /etc/network/interfeces => /etc/network/interfaces Is that a typo here or a typo in your command? 2. Any notice to why you can not save it? –  Rinzwind Feb 7 '13 at 14:20
    
In command typing sudo vi /etc/network/interfeces –  And Feb 7 '13 at 14:23
    
in settings changing to –  And Feb 7 '13 at 14:24
    
auto eth0 ifaces eth0 inet dhcp –  And Feb 7 '13 at 14:24
    
and cant save the file –  And Feb 7 '13 at 14:25
show 1 more comment

1 Answer 1

On the fly

you can configure ip as follows

ifconfig eth0 10.0.10.10 netmask 255.255.255.0 up

or static

edit /etc/network/interfaces

auto eth0
  iface eth0 inet static
    address 10.0.10.10
    netmask 255.255.255.0
    gateway 10.10.0.1

then

/etc/init.d/networking restart
share|improve this answer
    
I know how it suppose to look ... I dont know how to save this file . –  And Feb 8 '13 at 14:29
    
open the file using vi here is what you need to do vi /etc/network/interfaces then press i to enter edit mode, type the settings, then press Esc on your keyboard, later hold on shift key, and press zz (this will save and exit). –  user1007727 Feb 8 '13 at 16:35
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.