- 追加された行はこの色です。
- 削除された行はこの色です。
[[KVM]]
Last login: Mon Dec 13 19:05:12 on console
Welcome to Darwin!
MacBook:~ tomonori$ ping 192.168.2.101
PING 192.168.2.101 (192.168.2.101): 56 data bytes
64 bytes from 192.168.2.101: icmp_seq=0 ttl=64 time=0.291 ms
64 bytes from 192.168.2.101: icmp_seq=1 ttl=64 time=0.185 ms
C64 bytes from 192.168.2.101: icmp_seq=2 ttl=64 time=0.161 ms
64 bytes from 192.168.2.101: icmp_seq=3 ttl=64 time=8.862 ms
64 bytes from 192.168.2.101: icmp_seq=4 ttl=64 time=0.175 ms
64 bytes from 192.168.2.101: icmp_seq=5 ttl=64 time=0.114 ms
^C
--- 192.168.2.101 ping statistics ---
6 packets transmitted, 6 packets received, 0% packet loss
round-trip min/avg/max/stddev = 0.114/1.631/8.862/3.234 ms
MacBook:~ tomonori$ ssh 192.168.2.101
The authenticity of host '192.168.2.101 (192.168.2.101)' can't be established.
RSA key fingerprint is a1:0c:20:b3:fe:d9:22:4c:03:13:8b:bd:e5:e2:20:73.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '192.168.2.101' (RSA) to the list of known hosts.
tomonori@192.168.2.101's password:
MacBook:~ tomonori$ ssh root@192.168.2.101
root@192.168.2.101's password:
Permission denied, please try again.
root@192.168.2.101's password:
Last login: Tue Dec 14 05:50:01 2010
[root@kvm0 ~]#
[root@kvm0 ~]#
[root@kvm0 ~]#
[root@kvm0 ~]#
[root@kvm0 ~]# ls -l /etc/sysconfig/network
-rw-r--r-- 1 root root 63 12月 14 05:49 /etc/sysconfig/network
[root@kvm0 ~]# ls -l /etc/sysconfig/network-scripts/
合計 244
-rw-r--r-- 3 root root 118 12月 14 04:16 ifcfg-eth0
-rw-r--r-- 3 root root 161 12月 14 04:16 ifcfg-eth1
-rw-r--r-- 1 root root 254 7月 4 2009 ifcfg-lo
lrwxrwxrwx 1 root root 20 12月 14 05:44 ifdown -> ../../../sbin/ifdown
-rwxr-xr-x 1 root root 625 7月 4 2009 ifdown-bnep
-rwxr-xr-x 1 root root 4573 7月 4 2009 ifdown-eth
-rwxr-xr-x 1 root root 827 7月 4 2009 ifdown-ippp
-rwxr-xr-x 1 root root 2159 7月 4 2009 ifdown-ipsec
-rwxr-xr-x 1 root root 4473 7月 4 2009 ifdown-ipv6
lrwxrwxrwx 1 root root 11 12月 14 05:44 ifdown-isdn -> ifdown-ippp
-rwxr-xr-x 1 root root 1481 7月 4 2009 ifdown-post
-rwxr-xr-x 1 root root 1084 7月 4 2009 ifdown-ppp
-rwxr-xr-x 1 root root 637 7月 4 2009 ifdown-routes
-rwxr-xr-x 1 root root 1593 7月 4 2009 ifdown-sit
-rwxr-xr-x 1 root root 913 7月 4 2009 ifdown-sl
-rwxr-xr-x 1 root root 1074 7月 4 2009 ifdown-tunnel
lrwxrwxrwx 1 root root 18 12月 14 05:44 ifup -> ../../../sbin/ifup
-rwxr-xr-x 1 root root 13427 7月 4 2009 ifup-aliases
-rwxr-xr-x 1 root root 859 7月 4 2009 ifup-bnep
-rwxr-xr-x 1 root root 10798 7月 4 2009 ifup-eth
-rwxr-xr-x 1 root root 12033 7月 4 2009 ifup-ippp
-rwxr-xr-x 1 root root 8088 7月 4 2009 ifup-ipsec
-rwxr-xr-x 1 root root 10853 7月 4 2009 ifup-ipv6
-rwxr-xr-x 1 root root 823 7月 4 2009 ifup-ipx
lrwxrwxrwx 1 root root 9 12月 14 05:44 ifup-isdn -> ifup-ippp
-rwxr-xr-x 1 root root 727 7月 4 2009 ifup-plip
-rwxr-xr-x 1 root root 954 7月 4 2009 ifup-plusb
-rwxr-xr-x 1 root root 2369 7月 4 2009 ifup-post
-rwxr-xr-x 1 root root 4298 7月 4 2009 ifup-ppp
-rwxr-xr-x 1 root root 1707 7月 4 2009 ifup-routes
-rwxr-xr-x 1 root root 3662 7月 4 2009 ifup-sit
-rwxr-xr-x 1 root root 1675 7月 4 2009 ifup-sl
-rwxr-xr-x 1 root root 2078 7月 4 2009 ifup-tunnel
-rwxr-xr-x 1 root root 3325 7月 4 2009 ifup-wireless
-rwxr-xr-x 1 root root 5433 7月 4 2009 init.ipv6-global
-rwxr-xr-x 1 root root 1154 7月 4 2009 net.hotplug
-rw-r--r-- 1 root root 10363 11月 17 02:23 network-functions
-rw-r--r-- 1 root root 39833 7月 4 2009 network-functions-ipv6
[root@kvm0 ~]# yum -y install bridge-utils
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* addons: ftp.iij.ad.jp
* base: ftp.iij.ad.jp
* extras: ftp.iij.ad.jp
* updates: ftp.iij.ad.jp
Setting up Install Process
Package bridge-utils-1.1-2.x86_64 already installed and latest version
Nothing to do
[root@kvm0 ~]#
[root@kvm0 ~]#
[root@kvm0 ~]#
[root@kvm0 ~]#
[root@kvm0 ~]#
[root@kvm0 ~]#
[root@kvm0 ~]# cd /etc/sysconfig/network-scripts/
[root@kvm0 network-scripts]#
[root@kvm0 network-scripts]#
[root@kvm0 network-scripts]#
[root@kvm0 network-scripts]# ll
合計 244
-rw-r--r-- 3 root root 118 12月 14 04:16 ifcfg-eth0
-rw-r--r-- 3 root root 161 12月 14 04:16 ifcfg-eth1
-rw-r--r-- 1 root root 254 7月 4 2009 ifcfg-lo
lrwxrwxrwx 1 root root 20 12月 14 05:44 ifdown -> ../../../sbin/ifdown
-rwxr-xr-x 1 root root 625 7月 4 2009 ifdown-bnep
-rwxr-xr-x 1 root root 4573 7月 4 2009 ifdown-eth
-rwxr-xr-x 1 root root 827 7月 4 2009 ifdown-ippp
-rwxr-xr-x 1 root root 2159 7月 4 2009 ifdown-ipsec
-rwxr-xr-x 1 root root 4473 7月 4 2009 ifdown-ipv6
lrwxrwxrwx 1 root root 11 12月 14 05:44 ifdown-isdn -> ifdown-ippp
-rwxr-xr-x 1 root root 1481 7月 4 2009 ifdown-post
-rwxr-xr-x 1 root root 1084 7月 4 2009 ifdown-ppp
-rwxr-xr-x 1 root root 637 7月 4 2009 ifdown-routes
-rwxr-xr-x 1 root root 1593 7月 4 2009 ifdown-sit
-rwxr-xr-x 1 root root 913 7月 4 2009 ifdown-sl
-rwxr-xr-x 1 root root 1074 7月 4 2009 ifdown-tunnel
lrwxrwxrwx 1 root root 18 12月 14 05:44 ifup -> ../../../sbin/ifup
-rwxr-xr-x 1 root root 13427 7月 4 2009 ifup-aliases
-rwxr-xr-x 1 root root 859 7月 4 2009 ifup-bnep
-rwxr-xr-x 1 root root 10798 7月 4 2009 ifup-eth
-rwxr-xr-x 1 root root 12033 7月 4 2009 ifup-ippp
-rwxr-xr-x 1 root root 8088 7月 4 2009 ifup-ipsec
-rwxr-xr-x 1 root root 10853 7月 4 2009 ifup-ipv6
-rwxr-xr-x 1 root root 823 7月 4 2009 ifup-ipx
lrwxrwxrwx 1 root root 9 12月 14 05:44 ifup-isdn -> ifup-ippp
-rwxr-xr-x 1 root root 727 7月 4 2009 ifup-plip
-rwxr-xr-x 1 root root 954 7月 4 2009 ifup-plusb
-rwxr-xr-x 1 root root 2369 7月 4 2009 ifup-post
-rwxr-xr-x 1 root root 4298 7月 4 2009 ifup-ppp
-rwxr-xr-x 1 root root 1707 7月 4 2009 ifup-routes
-rwxr-xr-x 1 root root 3662 7月 4 2009 ifup-sit
-rwxr-xr-x 1 root root 1675 7月 4 2009 ifup-sl
-rwxr-xr-x 1 root root 2078 7月 4 2009 ifup-tunnel
-rwxr-xr-x 1 root root 3325 7月 4 2009 ifup-wireless
-rwxr-xr-x 1 root root 5433 7月 4 2009 init.ipv6-global
-rwxr-xr-x 1 root root 1154 7月 4 2009 net.hotplug
-rw-r--r-- 1 root root 10363 11月 17 02:23 network-functions
-rw-r--r-- 1 root root 39833 7月 4 2009 network-functions-ipv6
[root@kvm0 network-scripts]# ls
ifcfg-eth0 ifdown-ippp ifdown-routes ifup-bnep ifup-isdn ifup-sit network-functions
ifcfg-eth1 ifdown-ipsec ifdown-sit ifup-eth ifup-plip ifup-sl network-functions-ipv6
ifcfg-lo ifdown-ipv6 ifdown-sl ifup-ippp ifup-plusb ifup-tunnel
ifdown ifdown-isdn ifdown-tunnel ifup-ipsec ifup-post ifup-wireless
ifdown-bnep ifdown-post ifup ifup-ipv6 ifup-ppp init.ipv6-global
ifdown-eth ifdown-ppp ifup-aliases ifup-ipx ifup-routes net.hotplug
[root@kvm0 network-scripts]#
[root@kvm0 network-scripts]#
[root@kvm0 network-scripts]#
[root@kvm0 network-scripts]#
[root@kvm0 network-scripts]#
[root@kvm0 network-scripts]#
[root@kvm0 network-scripts]# cp ifcfg-eth0 ifcfg-br0
[root@kvm0 network-scripts]#
[root@kvm0 network-scripts]#
[root@kvm0 network-scripts]#
[root@kvm0 network-scripts]#
[root@kvm0 network-scripts]# vi ifcfg-br0
[root@kvm0 network-scripts]#
[root@kvm0 network-scripts]#
[root@kvm0 network-scripts]#
[root@kvm0 network-scripts]#
[root@kvm0 network-scripts]# vi ifcfg-eth
[root@kvm0 network-scripts]# vi ifcfg-eth0
[root@kvm0 network-scripts]#
[root@kvm0 network-scripts]#
[root@kvm0 network-scripts]#
[root@kvm0 network-scripts]# cd
[root@kvm0 ~]#
[root@kvm0 ~]#
[root@kvm0 ~]#
[root@kvm0 ~]#
[root@kvm0 ~]# /etc/init.d/network restart
インターフェース eth0 を終了中: