MPC8308NSG Routing table Configuration

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

MPC8308NSG Routing table Configuration

13,579 Views
ziedjelassi
Contributor II

Hi,

I'm using ISP router modem to have an internet access. So it manages the 192.168.1.0/24 sub-network and provide internet access. I have linked the MPC8308NSG WAN interface to this router. As network.png figure shows; I have accorded to it the 192.168.1.96 address. And it will manages the 192.168.2.0/24 sub-network. Other linked figures show its firewall and routing table configurations.

I have linked a PC to MPC8308NSG LAN and I have tested internet access. the result is negative; any device in MPC8308NSG LAN cannot have see any address not in 192.168.2.0/24 sub-network.

Please help.

Best regards,

Zied.

26 Replies

2,290 Views
ziedjelassi
Contributor II

hi Sinan,

actually, the file ip_forward is a clean file and the cmd echo 1 > /proc/sys/net/ipv4/ip_forward  doesn't modify it.

best regards,

Zied.

0 Kudos
Reply

2,290 Views
marius_grigoras
NXP Employee
NXP Employee

If you want to make this configuration permanent the best way to do it is using the file/etc/sysctl.conf where we can add a line containing net.ipv4.ip_forward = 1

After this you'll need to restart the network service -> full details can be found here [1]

Regards,

Marius

[1] How to enable IP Forwarding in Linux - MDLog:/sysadmin

0 Kudos
Reply

2,290 Views
ziedjelassi
Contributor II

Hi Marius,

Thx for your answer.

terminal.png

Best regards,

Zied

0 Kudos
Reply

2,290 Views
sinanakman
Senior Contributor III

Hi Zied, not sure what you mean by "clean" file. You mean it has no content? If the proc sys was enabled in your system you should see this file. What do you see if you do :

ls /proc/sys/net/ipv4/ip_forward

and

cat /proc/sys/net/ipv4/ip_forward

Thanks

Sinan Akman

0 Kudos
Reply

2,290 Views
ziedjelassi
Contributor II

Hi Sinan,

I'm sorry vi can't show ip_forward file baut with cat it will be possible.

It contains 1 now.

But there is not changes.

Best regards,

Zied

0 Kudos
Reply

2,290 Views
albertovargas
NXP Employee
NXP Employee

Restart the network service (you must be root)

RED HAT Based: /etc/init.d/network restart

Debian Based: /etc/init.d/networking restart