This will show you how to bind more IP into a server
$ sudo nano /etc/network/interfaces
Append or modify file as follows:
auto eth0 auto eth0:0 auto eth0:1 iface eth0 inet static address 192.168.1.1 netmask 255.255.255.0 gateway 192.168.1.254 iface eth0:0 inet static address 192.168.1.2 netmask 255.255.255.0 gateway 192.168.1.254 iface eth0:1 inet static address 192.168.1.3 netmask 255.255.255.0 gateway 192.168.1.254 # add rest of alias / binds below
A Note About Configuration Using ip Command
The ifconfig command is being phased out and being replaced by the ip command. The newer ip command does not use the same concept of aliases or virtual interfaces and instead treats additional addresses as first class objects. The newer way to configure multiple addresses on one interface is to use the up and down mechanism to call ip at the correct times to add and remove these additional IP addresses. Sample This /etc/network/interfaces file which assigns two IP addresses to eth0 and assigns labels to them:Save and close the file. Restart networking service under Debian / Ubuntu Linux, enter:auto eth0 allow-hotplug eth0 iface eth0 inet static address 192.168.1.1 netmask 255.255.255.0 gateway 192.168.1.254 up ip addr add 192.168.1.2/24 dev eth0 label eth0:0 down ip addr del 192.168.1.2/24 dev eth0 label eth0:0 up ip addr add 192.168.1.3/24 dev eth0 label eth0:1 down ip addr del 192.168.1.3/24 dev eth0 label eth0:1
# /etc/init.d/networking restart
OR$ sudo /etc/init.d/networking restart
How Do I Verify New Settings?
To verify your new settings, type:# ifconfig -a
OR# ip addr show eth0
Sample outputs:2: eth0: mtu 1500 qdisc mq state UP qlen 1000 link/ether b8:ac:6f:65:31:e5 brd ff:ff:ff:ff:ff:ff inet 192.168.1.1/24 brd 192.168.1.255 scope global eth0 inet 192.168.1.2/24 scope global secondary eth0:0 inet 192.168.1.3/24 scope global secondary eth0:1 inet6 fe80::baac:6fff:fe65:31e5/64 scope link valid_lft forever preferred_lft forever
Blog Archive
-
►
2011
(7)
- ► tháng mười một (1)
- ► tháng mười (4)
- ► tháng chín (2)

Popular Posts
-
Mở 1 page của người mà bạn muốn lấy album, và lấy số id của họ Sau đó bạn vào địa chỉ https://picasaweb.google.com/số-id-bạn-vừa-lấy-đư...
-
Việc hạn chế request từ một client vào server sẽ giảm được việc ddos vào trang xử lý, giảm việc crawl dữ liệu từ các machine. Tôi sẽ hướng d...
-
Tổng hợp thơ lục bát bằng tiếng Anh của Vozer (toàn bài bất hủ, có chỉnh sửa 1 chút cho chuẩn) ---Daviath--- Cỗ nào chả có thịt gà Đàn...
-
MEATV là phiên bản thử nghiệm của Công ty Điện toán và Truyền số liệu VDC trên nền website tại địa chỉ MegaTV Đây là dịch vụ xem phim và tr...
-
Ở đâu cái giống đàn bà Sống trên trần thế thật là khổ đau Từ nay cho đến về sau Đàn ông hạnh phúc với nhau được rồi Tình yêu cũng chỉ m...
-
Nếu bạn cảm thấy không an toàn với spam bot diễn đàn của bạn tới từ nước ngoài. Bạn có thể GTFO chúng từ tầng firewall nhưng mình cản ở tầng...
-
Tổng hợp 30 kiểu ngủ bựa nhất của bọn mèo Nằm ngửa đắp chăn Ngủ trong ly 2 anh em Phơi ...
-
Trên Mac OS việc sử dụng Terminal mặc định của hệ điều hành khá là thọt do ít tính nă...
-
VMware Workstation 8.0.2 và VMware Player 4.0.3 trên Ubuntu 12.04 khi cài đặt xong khởi động bị lỗi trong quá trình cài driver, ta thực hiện...
-
NGHÈO YÊU nhau mấy núi cũng trèo MÀ em lại nói anh nghèo là sao KHÔNG tiền, lòng vẫn thanh cao ĐƯỢC bao thương nhớ, biết bao nhiêu tiền XẾ...

Tags
- aircrack (1)
- Backtrack (1)
- bind ip (1)
- cat (2)
- crack wireless (1)
- crawl (1)
- debian (1)
- Games (1)
- Google Plus (1)
- Google+ (1)
- kitten (2)
- lấy album ảnh (1)
- limit request (1)
- limit_req (1)
- limit_req_zone (1)
- Mario (1)
- megatv (1)
- mèo (2)
- meow (1)
- mrtuan (1)
- nginx (1)
- ngủ (1)
- như lợn meow (1)
- server (1)
- sits (1)
- sleepy (1)
- tv (1)
- ubuntu (1)
- vdc (1)
- Webpicasa (1)
- WEP (1)
