Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [sudo] password for edward:
- Starting xenstored...
- Setting domain 0 name...
- Starting xenconsoled...
- edward@jaku:~$ sudo /etc/init.d/xend start
- There is already a pid file /var/run/dhclient.eth0.pid with pid 1054
- killed old client process, removed PID file
- Internet Systems Consortium DHCP Client V3.1.3
- Copyright 2004-2009 Internet Systems Consortium.
- All rights reserved.
- For info, please visit https://www.isc.org/software/dhcp/
- Listening on LPF/eth0/00:1e:37:cc:5d:c9
- Sending on LPF/eth0/00:1e:37:cc:5d:c9
- Sending on Socket/fallback
- DHCPRELEASE on eth0 to 139.82.16.33 port 67
- Internet Systems Consortium DHCP Client V3.1.3
- Copyright 2004-2009 Internet Systems Consortium.
- All rights reserved.
- For info, please visit https://www.isc.org/software/dhcp/
- Listening on LPF/eth0/00:1e:37:cc:5d:c9
- Sending on LPF/eth0/00:1e:37:cc:5d:c9
- Sending on Socket/fallback
- DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 6
- DHCPOFFER of 139.82.2.182 from 139.82.2.129
- DHCPREQUEST of 139.82.2.182 on eth0 to 255.255.255.255 port 67
- DHCPACK of 139.82.2.182 from 139.82.2.129
- bound to 139.82.2.182 -- renewal in 4183 seconds.
- edward@jaku:~$ 139.82.2.18^C
- edward@jaku:~$ sudo iptables -A FORWARD -o eth0 -i eth1 -s 139.82.2.184 -m conntrack --ctstate NEW -j ACCEPT^C
- edward@jaku:~$ sudo iptables -L
- Chain INPUT (policy ACCEPT)
- target prot opt source destination
- Chain FORWARD (policy ACCEPT)
- target prot opt source destination
- ACCEPT all -- anywhere anywhere PHYSDEV match --physdev-out vif1.0 --physdev-is-bridged
- ACCEPT all -- anywhere anywhere PHYSDEV match --physdev-in vif1.0 --physdev-is-bridged
- Chain OUTPUT (policy ACCEPT)
- target prot opt source destination
- edward@jaku:~$ sudo iptables -A FORWARD -o eth0 -i eth1 -s 139.82.2.184 -m conntrack --ctstate NEW -j ACCEPT
- edward@jaku:~$ sudo iptables -A FORWARD -m conntrack --ctstate ESTABLISHED,RELATED -j ACCEPT
- edward@jaku:~$ sudo iptables -A POSTROUTING -t nat -j MASQUERADE
- edward@jaku:~$ ifconfig
- eth0 Link encap:Ethernet HWaddr 00:1e:37:cc:5d:c9
- inet addr:139.82.2.182 Bcast:139.82.2.191 Mask:255.255.255.192
- inet6 addr: fe80::21e:37ff:fecc:5dc9/64 Scope:Link
- UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
- RX packets:511 errors:0 dropped:0 overruns:0 frame:0
- TX packets:409 errors:0 dropped:0 overruns:0 carrier:0
- collisions:0 txqueuelen:0
- RX bytes:217043 (217.0 KB) TX bytes:53887 (53.8 KB)
- 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:0 errors:0 dropped:0 overruns:0 frame:0
- TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
- collisions:0 txqueuelen:0
- RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
- peth0 Link encap:Ethernet HWaddr 00:1e:37:cc:5d:c9
- inet6 addr: fe80::21e:37ff:fecc:5dc9/64 Scope:Link
- UP BROADCAST RUNNING PROMISC MULTICAST MTU:1500 Metric:1
- RX packets:566 errors:0 dropped:0 overruns:0 frame:0
- TX packets:456 errors:0 dropped:0 overruns:0 carrier:0
- collisions:81 txqueuelen:10
- RX bytes:228607 (228.6 KB) TX bytes:58408 (58.4 KB)
- Memory:fe000000-fe020000
- vif1.0 Link encap:Ethernet HWaddr fe:ff:ff:ff:ff:ff
- inet6 addr: fe80::fcff:ffff:feff:ffff/64 Scope:Link
- UP BROADCAST RUNNING PROMISC MULTICAST MTU:1500 Metric:1
- RX packets:23 errors:0 dropped:0 overruns:0 frame:0
- TX packets:94 errors:0 dropped:4 overruns:0 carrier:0
- collisions:0 txqueuelen:32
- RX bytes:1544 (1.5 KB) TX bytes:7610 (7.6 KB)
- edward@jaku:~$
- ---
- Ubuntu 8.04 ubuntu-pristine tty1
- ubuntu-pristine login: * Reloading OpenBSD Secure Shell server's configuration sshd
- root
- Password:
- Last login: Sat May 28 04:08:04 UTC 2011 on tty1
- Linux ubuntu-pristine 2.6.18.8-xenU #1 SMP Tue May 26 09:07:46 CDT 2009 i686
- The programs included with the Ubuntu system are free software;
- the exact distribution terms for each program are described in the
- individual files in /usr/share/doc/*/copyright.
- Ubuntu comes with ABSOLUTELY NO WARRANTY, to the extent permitted by
- applicable law.
- To access official Ubuntu documentation, please visit:
- http://help.ubuntu.com/
- root@ubuntu-pristine:~# ifconfig
- eth0 Link encap:Ethernet HWaddr 00:16:3e:2b:b7:32
- inet addr:139.82.2.184 Bcast:139.82.2.191 Mask:255.255.255.192
- UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
- RX packets:28 errors:0 dropped:0 overruns:0 frame:0
- TX packets:17 errors:0 dropped:0 overruns:0 carrier:0
- collisions:0 txqueuelen:1000
- RX bytes:2640 (2.5 KB) TX bytes:1614 (1.5 KB)
- lo Link encap:Local Loopback
- inet addr:127.0.0.1 Mask:255.0.0.0
- UP LOOPBACK RUNNING MTU:16436 Metric:1
- RX packets:3 errors:0 dropped:0 overruns:0 frame:0
- TX packets:3 errors:0 dropped:0 overruns:0 carrier:0
- collisions:0 txqueuelen:0
- RX bytes:279 (279.0 B) TX bytes:279 (279.0 B)
- root@ubuntu-pristine:~# ping google.com
- root@ubuntu-pristine:~# ping google.com
- root@ubuntu-pristine:~# route -n
- Kernel IP routing table
- Destination Gateway Genmask Flags Metric Ref Use Iface
- 139.82.2.128 0.0.0.0 255.255.255.192 U 0 0 0 eth0
- 0.0.0.0 139.82.2.129 0.0.0.0 UG 100 0 0 eth0
- root@ubuntu-pristine:~# sudo ip route add default via 139.82.2.182
- sudo: unable to resolve host ubuntu-pristine
- root@ubuntu-pristine:~# route -n
- Kernel IP routing table
- Destination Gateway Genmask Flags Metric Ref Use Iface
- 139.82.2.128 0.0.0.0 255.255.255.192 U 0 0 0 eth0
- 0.0.0.0 139.82.2.129 0.0.0.0 UG 100 0 0 eth0
- root@ubuntu-pristine:~# ip route add default via 139.82.2.182
- root@ubuntu-pristine:~# ping google.com
- PING google.com (64.233.163.104) 56(84) bytes of data.
- From 139.82.2.129 icmp_seq=1 Packet filtered
- From 139.82.2.129 icmp_seq=2 Packet filtered
- --- google.com ping statistics ---
- 2 packets transmitted, 0 received, +2 errors, 100% packet loss, time 1002ms
- root@ubuntu-pristine:~# cat /etc/fstab
- /dev/sda1 / ext3 defaults,errors=remount-ro 0 0
- proc /proc proc defaults 0 0
- devpts /dev/pts devpts gid=5,mode=620 0 0
- root@ubuntu-pristine:~# ls /boot/
- root@ubuntu-pristine:~# ls /lib/modules/
- 2.6.18.8-xenU
- root@ubuntu-pristine:~# ls /lib/modules/2.6.18.8-xenU/
- kernel modules.dep modules.isapnpmap modules.seriomap
- modules.alias modules.ieee1394map modules.ofmap modules.symbols
- modules.ccwmap modules.inputmap modules.pcimap modules.usbmap
- root@ubuntu-pristine:~# cat /etc/network/interfaces
- # The loopback network interface
- auto lo
- iface lo inet loopback
- # The primary network interface
- auto eth0
- iface eth0 inet dhcp
- root@ubuntu-pristine:~# cat /etc/hosts
- 127.0.0.1 localhost.localdomain localhost
- root@ubuntu-pristine:~# df -h
- Filesystem Size Used Avail Use% Mounted on
- /dev/sda1 986M 242M 694M 26% /
- varrun 129M 32K 129M 1% /var/run
- varlock 129M 0 129M 0% /var/lock
- udev 129M 8.0K 129M 1% /dev
- devshm 129M 0 129M 0% /dev/shm
- root@ubuntu-pristine:~#
Advertisement
Add Comment
Please, Sign In to add comment