Menambah NIC di ubuntu

Pertanyaan umum seputar distribusi Ubuntu yang menjadi distro wajib members ubuntu-indonesia.com
User avatar
xopal
Posts: 5
Joined: 12 Aug 2010, 13:20
Location: surabaya
Contact:

Menambah NIC di ubuntu

Postby xopal » 28 Aug 2010, 21:18

Mohon petunjuk suhu di sini:

Saya baru memasang NIC kedua di server ubuntu, masalahnya bagaimana mengintegrasikannya kedalam system sekaligus memasang IP baru untuk NIC tsb.

root@ubuntu:~# ifconfig
eth0 Link encap:Ethernet HWaddr 00:50:ba:60:d8:cc
inet addr:172.17.20.10 Bcast:172.17.20.255 Mask:255.255.255.0
inet6 addr: fe80::250:baff:fe60:d8cc/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:123979 errors:0 dropped:0 overruns:0 frame:0
TX packets:144544 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:63855731 (63.8 MB) TX bytes:78477391 (78.4 MB)
Interrupt:11 Base address:0xd400

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:25669 errors:0 dropped:0 overruns:0 frame:0
TX packets:25669 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:3997692 (3.9 MB) TX bytes:3997692 (3.9 MB)


lspci -v
00:0d.0 Ethernet controller: D-Link System Inc RTL8139 Ethernet (rev 10)
Subsystem: D-Link System Inc RTL8139 Ethernet
Flags: bus master, medium devsel, latency 32, IRQ 11
I/O ports at d400 [size=256]
Memory at ed800000 (32-bit, non-prefetchable) [size=256]
Capabilities: [50] Power Management version 2
Kernel driver in use: 8139too
Kernel modules: 8139too

00:10.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ (rev 10)
Subsystem: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+
Flags: bus master, medium devsel, latency 32, IRQ 5
I/O ports at d000 [size=256]
Memory at ed000000 (32-bit, non-prefetchable) [size=256]
[virtual] Expansion ROM at 20000000 [disabled] [size=64K]
Capabilities: [50] Power Management version 2
Kernel driver in use: 8139too
Kernel modules: epl, 8139too, 8139cp


Terima kasih sebelumnya
User avatar
thrvers
Posts: 4458
Joined: 01 Jan 2010, 13:28
Location: Jombang, Indonesia
Contact:

Re: Menambah NIC di ubuntu

Postby thrvers » 28 Aug 2010, 22:03

'
coba lihat, dah :
$ lspci |grep Ethernet
dan
$ ifconfig -a

*=*
User avatar
xopal
Posts: 5
Joined: 12 Aug 2010, 13:20
Location: surabaya
Contact:

Re: Menambah NIC di ubuntu

Postby xopal » 28 Aug 2010, 22:17

root@ubuntu:~# lspci |grep Ethernet
00:0d.0 Ethernet controller: D-Link System Inc RTL8139 Ethernet (rev 10)
00:10.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ (rev 10)


Sudah bisa pak, caranya saya edit /etc/network/interfaces copy paste eth0
tinggal diganti eth1 sama ip addressnya network dll.
Lalu /etc/init.d/networking restart
root@ubuntu:~# ifconfig -a
eth0 Link encap:Ethernet HWaddr 00:50:ba:60:d8:cc
inet addr:172.17.20.10 Bcast:172.17.20.255 Mask:255.255.255.0
inet6 addr: fe80::250:baff:fe60:d8cc/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:237488 errors:0 dropped:0 overruns:0 frame:0
TX packets:284106 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:142062845 (142.0 MB) TX bytes:169827152 (169.8 MB)
Interrupt:11 Base address:0xd400

eth1 Link encap:Ethernet HWaddr 00:e0:4c:10:1a:6c
inet addr:192.168.1.10 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:4294967295 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:5 Base address:0xd000

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:30957 errors:0 dropped:0 overruns:0 frame:0
TX packets:30957 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:4788479 (4.7 MB) TX bytes:4788479 (4.7 MB)
User avatar
thrvers
Posts: 4458
Joined: 01 Jan 2010, 13:28
Location: Jombang, Indonesia
Contact:

Re: Menambah NIC di ubuntu

Postby thrvers » 28 Aug 2010, 22:25

'
wah case-closed nih :D oleh TS nya sendiri.

*=*
User avatar
xopal
Posts: 5
Joined: 12 Aug 2010, 13:20
Location: surabaya
Contact:

Re: Menambah NIC di ubuntu

Postby xopal » 28 Aug 2010, 22:29

Case closed by google
User avatar
lisnux
Posts: 1763
Joined: 02 Jan 2010, 16:26
Location: Samarinda
Contact:

Re: Menambah NIC di ubuntu

Postby lisnux » 29 Aug 2010, 08:54

seep dilock ya

Return to “Pertanyaan Umum”

Who is online

Users browsing this forum: Bing [Bot] and 9 guests