ip forward
JRoystone at nea.org
JRoystone at nea.org
Wed Dec 16 16:26:33 UTC 2009
Make a new network script
Do it like this:
Cat /etc/sysconfig/network-scripts/ifcfg-eth0:0
# Broadcom Corporation NetXtreme BCM5703X Gigabit Ethernet
DEVICE=eth0:0
BOOTPROTO=none
BROADCAST=199.23.200.255
HWADDR=00:11:43:37:06:D5
IPADDR=199.23.200.90
NETMASK=255.255.255.0
NETWORK=199.23.200.0
ONBOOT=yes
TYPE=Ethernet
P
Please consider the environment and support telework
J.R. Roystone, Unix/Linux Administrator
NEA ETS 202 822 7547
From: redhat-sysadmin-list-bounces at redhat.com
[mailto:redhat-sysadmin-list-bounces at redhat.com] On Behalf Of Adel
ESSAFI
Sent: Wednesday, December 16, 2009 11:17 AM
To: redhat-sysadmin-list at redhat.com
Subject: Re: ip forward
I have a a single network card. I know someone whoi have done this with
only a single card.
2009/12/16 Scott Moseman <smoseman at novolink.net>
Don't you need to have your 2nd interface be physical, not an alias?
From: redhat-sysadmin-list-bounces at redhat.com
[mailto:redhat-sysadmin-list-bounces at redhat.com] On Behalf Of Adel
ESSAFI
Sent: Wednesday, December 16, 2009 8:46 AM
To: redhat-sysadmin-list at redhat.com
Subject: ip forward
Hi list
In my school, I need to have a PC that act like router since I have not
public addresses.
I have followed many link
(http://www.ducea.com/2006/08/01/how-to-enable-ip-forwarding-in-linux/,
the doc of fedora ....).
All tell the same thing.
Unfortunally, When I follow them, I have no results! When I ping an
adsress from a windows PC (192.168.10.7) I have no response.
here is my configuration.
Can you help plz
Regards
ps: I am on fedora 10 and iptables is disabled.
[root localhost ~]# ifconfig
eth0 Link encap:Ethernet HWaddr 00:18:8B:DB:7E:9E
inet addr:41.229.61.107 Bcast:41.229.61.255
Mask:255.255.255.0
inet6 addr: fe80::218:8bff:fedb:7e9e/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:3183 errors:0 dropped:0 overruns:0 frame:0
TX packets:3256 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:872353 (851.9 KiB) TX bytes:476139 (464.9 KiB)
Interrupt:17
eth0:1 Link encap:Ethernet HWaddr 00:18:8B:DB:7E:9E
inet addr:192.168.10.10 Bcast:192.168.10.255
Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Interrupt:17
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:16623 errors:0 dropped:0 overruns:0 frame:0
TX packets:16623 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:495159 (483.5 KiB) TX bytes:495159 (483.5 KiB)
[root localhost ~]# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use
Iface
41.229.61.0 * 255.255.255.0 U 0 0 0
eth0
192.168.10.0 * 255.255.255.0 U 0 0 0
eth0
link-local * 255.255.0.0 U 1002 0 0
eth0
default 41.229.61.65 0.0.0.0 UG 0 0 0
eth0
[root localhost ~]# iptables
iptables v1.4.3.2: no command specified
Try `iptables -h' or 'iptables --help' for more information.
[root localhost ~]# cat /etc/sysctl.conf
# Kernel sysctl configuration file for Red Hat Linux
#
# For binary values, 0 is disabled, 1 is enabled. See sysctl(8) and
# sysctl.conf(5) for more details.
# Controls IP packet forwarding
net.ipv4.ip_forward = 1
# Controls source route verification
net.ipv4.conf.default.rp_filter = 1
# Do not accept source routing
net.ipv4.conf.default.accept_source_route = 0
# Controls the System Request debugging functionality of the kernel
kernel.sysrq = 0
# Controls whether core dumps will append the PID to the core filename.
# Useful for debugging multi-threaded applications.
kernel.core_uses_pid = 1
# Added by Cinelerra RPM from RPM Fusion
kernel.shmmax = 0x7fffffff
--
http://ilovefedora.blogspot.com/
--
http://ilovefedora.blogspot.com/
--
PhD candidate in Computer Science
Address
BP 108, Bureau de poste Tunis republique
1001 Tunis
Tunisia
tel: +216 97 246 706
fax: +216 71 391 166
--
redhat-sysadmin-list mailing list
redhat-sysadmin-list at redhat.com
https://www.redhat.com/mailman/listinfo/redhat-sysadmin-list
--
http://ilovefedora.blogspot.com/
--
PhD candidate in Computer Science
Address
BP 108, Bureau de poste Tunis republique
1001 Tunis
Tunisia
tel: +216 97 246 706
fax: +216 71 391 166
*******************************************************************
Only the individual sender is responsible for the content of the
message, and the message does not necessarily reflect the position
or policy of the National Education Association or its affiliates.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/redhat-sysadmin-list/attachments/20091216/f0459408/attachment.htm>
More information about the redhat-sysadmin-list
mailing list